.auth-page {
    --ac-heading: #0f172a;
    --ac-subtitle: #374151;
    --ac-label: #1e293b;
    --ac-input-text: #0f172a;
    --ac-placeholder: #64748b;
    --ac-icon: #6b7280;
    --ac-toggle: #6b7280;
    --ac-toggle-hover: #1e293b;
    --ac-footer-text: #374151;
    --ac-card-bg: #ffffff;
    --ac-card-border: #e2e8f0;
    --ac-input-bg: #f8fafc;
    --ac-input-border: #d1d5db;
    --ac-footer-border: #e2e8f0;
    --ac-pw-rule: #4b5563;
    --ac-strength-bg: #e5e7eb;
}
[data-theme="dark"] .auth-page,
body.dark-theme .auth-page {
    --ac-heading: #f9fafb;
    --ac-subtitle: #e5e7eb;
    --ac-label: #f3f4f6;
    --ac-input-text: #f9fafb;
    --ac-placeholder: #9ca3af;
    --ac-icon: #9ca3af;
    --ac-toggle: #9ca3af;
    --ac-toggle-hover: #f3f4f6;
    --ac-footer-text: #e5e7eb;
    --ac-card-bg: #111827;
    --ac-card-border: #374151;
    --ac-input-bg: #1f2937;
    --ac-input-border: #4b5563;
    --ac-footer-border: #374151;
    --ac-pw-rule: #d1d5db;
    --ac-strength-bg: #374151;
}
body { margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.auth-background { display: none; }
.auth-page {
    min-height: 100vh; width: 100%;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 32px 20px 40px; box-sizing: border-box;
    position: relative; background: #f1f5f9;
}
.auth-page::before {
    content: ''; position: fixed; inset: 0;
    background: radial-gradient(ellipse at 50% -10%, rgba(225,6,0,0.05) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
}
[data-theme="dark"] .auth-page, body.dark-theme .auth-page { background: #080c14; }
[data-theme="dark"] .auth-page::before, body.dark-theme .auth-page::before {
    background: radial-gradient(ellipse at 50% -10%, rgba(225,6,0,0.10) 0%, transparent 55%);
}
.auth-container { width: 100%; max-width: 480px; position: relative; z-index: 1; }
.auth-card {
    background: var(--ac-card-bg); border: 1px solid var(--ac-card-border);
    border-radius: 20px; padding: 44px 40px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); width: 100%; box-sizing: border-box;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { margin: 0 0 8px 0; font-size: 28px; font-weight: 800; color: var(--ac-heading); line-height: 1.2; letter-spacing: -0.03em; }
.auth-header p { margin: 0; color: var(--ac-subtitle); font-size: 15px; line-height: 1.55; font-weight: 500; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert.info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #2563eb; }
[data-theme="dark"] .auth-alert.info, body.dark-theme .auth-alert.info { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.4); color: #60a5fa; }
.auth-alert.error { background: rgba(225,6,0,0.08); border: 1px solid rgba(225,6,0,0.25); color: #dc2626; }
[data-theme="dark"] .auth-alert.error, body.dark-theme .auth-alert.error { background: rgba(225,6,0,0.12); border-color: rgba(225,6,0,0.4); color: #f87171; }
.auth-alert.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: #059669; }
[data-theme="dark"] .auth-alert.success, body.dark-theme .auth-alert.success { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); color: #34d399; }
.auth-form { margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 700; color: var(--ac-label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.input-wrapper { position: relative; border: 1.5px solid var(--ac-input-border); border-radius: 12px; background: var(--ac-input-bg); transition: border-color 0.2s, box-shadow 0.2s; }
.input-wrapper:focus-within { border-color: #e10600; box-shadow: 0 0 0 3px rgba(225,6,0,0.1); }
.input-wrapper > i:first-child { position: absolute !important; left: 16px !important; top: 50% !important; transform: translateY(-50%) !important; color: var(--ac-icon); font-size: 15px; z-index: 2; pointer-events: none; display: block !important; width: auto !important; }
.input-wrapper input { width: 100%; padding: 14px 46px 14px 46px; border: none !important; background: transparent !important; font-size: 15px; color: var(--ac-input-text); box-sizing: border-box; font-family: inherit; outline: none; border-radius: 12px; display: block !important; }
.input-wrapper input::placeholder { color: var(--ac-placeholder) !important; }
.password-toggle { position: absolute !important; right: 14px !important; top: 50% !important; transform: translateY(-50%) !important; background: none; border: none; color: var(--ac-toggle); cursor: pointer; padding: 6px; z-index: 2; display: flex !important; align-items: center; justify-content: center; transition: color 0.2s; font-size: 15px; width: auto !important; height: auto !important; }
.password-toggle:hover { color: var(--ac-toggle-hover); }
.auth-btn { width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; letter-spacing: 0.04em; text-transform: uppercase; }
.auth-btn.primary { background: #e10600; color: #fff; box-shadow: 0 4px 14px rgba(225,6,0,0.25); }
.auth-btn.primary:hover { background: #c50500; box-shadow: 0 6px 20px rgba(225,6,0,0.35); transform: translateY(-1px); }
.auth-btn.primary:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.auth-footer { text-align: center; padding-top: 20px; border-top: 1px solid var(--ac-footer-border); }
.auth-footer p { margin: 0 0 8px 0; color: var(--ac-footer-text); font-size: 14px; font-weight: 500; }
.auth-footer p:last-child { margin-bottom: 0; }
.auth-footer a { color: #e10600; text-decoration: none; font-weight: 600; transition: opacity 0.2s; }
.auth-footer a:hover { opacity: 0.75; }
.pw-strength-bar-wrap { height: 4px; background: var(--ac-strength-bg); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.pw-strength-bar { height: 100%; width: 0%; border-radius: 4px; transition: all .35s ease; }
.pw-strength-label { font-size: 12px; font-weight: 600; margin-top: 4px; min-height: 16px; }
.pw-rules { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.pw-rule { font-size: 12px; color: var(--ac-pw-rule); display: flex; align-items: center; gap: 8px; transition: color .2s; font-weight: 500; }
.pw-rule::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: 0.6; }
.pw-rule.pw-pass::before { opacity: 1; }
.pw-rule.pw-pass { color: #10b981; }
.pw-match-label { font-size: 12px; font-weight: 600; margin-top: 5px; min-height: 16px; }
#nl-fab { display: none !important; }
@media (max-width: 640px) {
    .auth-page { padding: 0; align-items: flex-start; background: #ffffff; }
    [data-theme="dark"] .auth-page, body.dark-theme .auth-page { background: #0d1117; }
    .auth-page::before { display: none; }
    .auth-container { max-width: 100%; width: 100%; }
    .auth-card { border: none; border-radius: 0; box-shadow: none; background: transparent; padding: 24px 20px 32px; min-height: 100svh; }
    .auth-header { margin-bottom: 28px; }
    .auth-header h1 { font-size: 24px; }
    .auth-header p { font-size: 14px; }
    .form-group { margin-bottom: 16px; }
    .input-wrapper input { padding: 13px 44px 13px 44px; font-size: 16px; }
    .password-toggle { right: 12px !important; }
    .auth-btn { padding: 14px; }
    .auth-footer { padding-top: 16px; }
}
@media (min-width: 1280px) {
    .auth-container { max-width: 560px; }
    .auth-card { padding: 56px 52px; border-radius: 24px; }
    .auth-header { margin-bottom: 36px; }
    .auth-header h1 { font-size: 36px; margin-bottom: 12px; }
    .auth-header p { font-size: 18px; }
    .form-group { margin-bottom: 26px; }
    .form-group label { font-size: 16px; margin-bottom: 9px; }
    .input-wrapper > i:first-child { font-size: 18px; left: 20px !important; }
    .input-wrapper input { padding: 18px 56px 18px 56px; font-size: 18px; }
    .input-wrapper { border-radius: 14px; border-width: 2px; }
    .password-toggle { font-size: 18px; right: 16px !important; }
    .auth-btn { padding: 19px; font-size: 18px; border-radius: 14px; }
    .auth-footer p { font-size: 16px; }
    .auth-alert { font-size: 16px; padding: 16px 20px; }
    .pw-rule { font-size: 14px; }
    .pw-strength-label { font-size: 14px; }
}
