/* ============================
   Auth Pages (Login / Register)
   ============================ */

:root {
    --auth-accent: #3dbea7;
    --auth-accent-hover: #35a892;
    --auth-bg: #f0f4fa;
    --auth-card-bg: #ffffff;
    --auth-text: #1f2b46;
    --auth-muted: #6b7c99;
    --auth-border: #e2ebf7;
    --auth-field-bg: #f7f9fc;
    --auth-radius: 16px;
    --auth-shadow: 0 20px 50px rgba(21, 41, 78, 0.1);
}

.auth-page {
    background: var(--auth-bg);
}

.auth-page #header-container {
    background: transparent;
    box-shadow: none;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    padding: 60px 20px 80px;
    background:
        radial-gradient(circle, rgba(61,190,167,0.12) 1px, transparent 1px) 0 0 / 28px 28px,
        radial-gradient(ellipse 500px 400px at 15% 30%, rgba(61,190,167,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 350px at 85% 70%, rgba(168,220,213,0.08) 0%, transparent 70%),
        var(--auth-bg);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card-bg);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 40px 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

.auth-alert-error {
    background: #f0faf8;
    color: #b91c1c;
    border: 1px solid #bbf7d0;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Social Buttons */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.auth-social-btn:hover {
    background: #f8f9fb;
    border-color: #cdd7e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-social-google:hover {
    border-color: #4285f4;
    background: #f8fbff;
}

.auth-social-facebook:hover {
    border-color: #1877f2;
    background: #f6f9ff;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    font-size: 12.5px;
    color: var(--auth-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form */
.auth-form {
    margin-bottom: 24px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 6px;
}

.auth-forgot-link {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: var(--auth-field-bg);
    font-size: 14px;
    color: var(--auth-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(61, 190, 167, 0.08);
    background: #fff;
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper input {
    padding-right: 44px;
}

.auth-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
}

.auth-toggle-password:hover {
    color: var(--auth-text);
}

.auth-field-error {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    color: #dc2626;
}

/* Remember me */
.auth-remember {
    margin-bottom: 22px;
}

.auth-remember label.auth-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--auth-muted);
    cursor: pointer;
    margin: 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

/* Submit */
.auth-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, #5cceb9 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(61, 190, 167, 0.3);
}

/* Footer */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    font-size: 13.5px;
    color: var(--auth-muted);
    margin: 0;
}

.auth-footer a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

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

/* reCAPTCHA */
.auth-field .g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 12px 60px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .auth-header h2 {
        font-size: 20px;
    }
}
