/* Styles for layouts/auth.ejs — register, forgot-password, reset-password,
   pending. The login page uses the contact-portal layout instead. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    /* Column so the version footer stacks under the card instead of
       becoming a second flex item beside it. */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
    padding: 40px 20px;
    border-radius: 12px 12px 0 0;
    margin: -40px -40px 30px;
}

.auth-header h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #a0a0a0;
    font-size: 14px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.auth-logo-image {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #374151;
    border-radius: 8px;
    font-size: 14px;
    background: #2d2d2d;
    color: #ffffff;
    transition: all 0.2s;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: #333333;
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #dc2626;
}

.alert-success {
    background: #14532d;
    color: #86efac;
    border: 1px solid #22c55e;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

.auth-footer a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.auth-footer a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #e2e8f0;
}

.auth-version-footer {
    flex: none;
    width: 100%;
    padding: 16px 12px 4px;
    text-align: center;
    font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: rgba(255, 255, 255, 0.7);
    user-select: all;
}
