/**
 * Auth pages — light theme (login, register, forgot/reset, verify).
 */
html.light-theme body:has(.auth-page-container),
body.light-theme:has(.auth-page-container) {
    background: linear-gradient(-45deg, #f8f9fa, #e8eef8, #f5f5f5, #f0e8f4) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite;
    color: #0f0f0f;
}

html.light-theme .auth-form,
body.light-theme .auth-form {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e0e0e0;
    color: #0f0f0f;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

html.light-theme .auth-form h2,
body.light-theme .auth-form h2 {
    color: #0f0f0f !important;
}

html.light-theme .auth-form p,
html.light-theme .auth-form .toggle-label,
body.light-theme .auth-form p,
body.light-theme .auth-form .toggle-label {
    color: #606060 !important;
}

html.light-theme .auth-form p strong,
body.light-theme .auth-form p strong {
    color: #0f0f0f !important;
}

html.light-theme .auth-form a,
body.light-theme .auth-form a {
    color: #065fd4;
}

html.light-theme .auth-form a:hover,
body.light-theme .auth-form a:hover {
    color: #0047b3;
}

html.light-theme .auth-form input,
body.light-theme .auth-form input {
    background: #f5f5f5 !important;
    border: 1px solid #d0d0d0 !important;
    color: #0f0f0f !important;
}

html.light-theme .auth-form input::placeholder,
body.light-theme .auth-form input::placeholder {
    color: #757575 !important;
}

html.light-theme .auth-form input:focus,
body.light-theme .auth-form input:focus {
    background: #fff !important;
    border-color: #065fd4 !important;
    box-shadow: 0 0 0 2px rgba(6, 95, 212, 0.15);
}

html.light-theme .input-icon,
body.light-theme .input-icon {
    filter: brightness(0) opacity(0.45) !important;
}

html.light-theme .input-wrapper:focus-within .input-icon,
body.light-theme .input-wrapper:focus-within .input-icon {
    filter: brightness(0) opacity(0.75) !important;
}

html.light-theme .auth-form button[type="submit"]:not(.resend-link-btn),
html.light-theme .auth-form button:not(.captcha-refresh-btn):not(.resend-link-btn):not(.theme-toggle-btn),
body.light-theme .auth-form button[type="submit"]:not(.resend-link-btn),
body.light-theme .auth-form button:not(.captcha-refresh-btn):not(.resend-link-btn):not(.theme-toggle-btn) {
    background: linear-gradient(45deg, #065fd4, #3ea6ff) !important;
    color: #fff !important;
}

html.light-theme .auth-form .theme-toggle-btn:hover,
body.light-theme .auth-form .theme-toggle-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

html.light-theme .lang-switcher a,
body.light-theme .lang-switcher a {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #606060;
}

html.light-theme .lang-switcher a:hover,
body.light-theme .lang-switcher a:hover {
    color: #0f0f0f;
    background: rgba(0, 0, 0, 0.08);
}

html.light-theme .lang-switcher a.active,
body.light-theme .lang-switcher a.active {
    color: #fff;
    background: linear-gradient(45deg, #065fd4, #3ea6ff);
    border-color: transparent;
}

html.light-theme .theme-toggle-btn,
body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #606060;
}

html.light-theme .theme-toggle-btn:hover,
body.light-theme .theme-toggle-btn:hover {
    color: #0f0f0f;
    background: rgba(0, 0, 0, 0.08);
}

html.light-theme .captcha-refresh-btn,
body.light-theme .captcha-refresh-btn {
    background: #e8f0fe !important;
    border: 1px solid #065fd4 !important;
    color: #065fd4 !important;
}

html.light-theme .captcha-refresh-btn:hover,
body.light-theme .captcha-refresh-btn:hover {
    background: #d2e3fc !important;
    color: #0047b3 !important;
    box-shadow: none !important;
}

html.light-theme .captcha-image,
body.light-theme .captcha-image {
    border-color: #d0d0d0;
}

html.light-theme .slider,
body.light-theme .slider {
    background-color: #ccc;
}

html.light-theme input:checked + .slider,
body.light-theme input:checked + .slider {
    background-color: #065fd4;
}

html.light-theme .error-message,
body.light-theme .error-message {
    background: rgba(211, 47, 47, 0.08);
    border-color: rgba(211, 47, 47, 0.35);
    color: #c62828;
}

html.light-theme .success-message,
body.light-theme .success-message {
    background: rgba(46, 125, 50, 0.08);
    border-color: rgba(46, 125, 50, 0.35);
    color: #2e7d32;
}

html.light-theme .input-error-message,
body.light-theme .input-error-message {
    color: #c62828;
}

html.light-theme .code-input-field::placeholder,
body.light-theme .code-input-field::placeholder {
    color: #9e9e9e !important;
}

html.light-theme .auth-form button.resend-link-btn,
body.light-theme .auth-form button.resend-link-btn {
    background: transparent !important;
    border: none !important;
    color: #065fd4 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 12px auto 0 !important;
    box-shadow: none !important;
    transform: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

html.light-theme .auth-form button.resend-link-btn:hover,
body.light-theme .auth-form button.resend-link-btn:hover {
    color: #0047b3 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

html.light-theme .auth-form button.resend-link-btn:disabled,
body.light-theme .auth-form button.resend-link-btn:disabled {
    color: #9e9e9e !important;
    background: transparent !important;
    text-decoration: none !important;
}

html.light-theme .field-error-icon::after,
body.light-theme .field-error-icon::after {
    background-color: #fff;
    color: #c62828;
    border-color: #ef9a9a;
}

html.light-theme .auth-desc,
body.light-theme .auth-desc {
    color: #606060 !important;
}

html.light-theme .auth-muted,
body.light-theme .auth-muted {
    color: #757575 !important;
}

html.light-theme .auth-link-btn,
body.light-theme .auth-link-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(45deg, #065fd4, #3ea6ff) !important;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 500;
}
