.gradient-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
html { scroll-behavior: smooth; }
body { animation: lcPageFadeIn 0.2s ease; }
@keyframes lcPageFadeIn { from { opacity: 0; } to { opacity: 1; } }
*:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 2px; }
*:focus:not(:focus-visible) { outline: none; }
::selection { background: #eff6ff; color: #2563eb; }
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading .btn-spinner { display: inline-block !important; }
.btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: lcSpinBtn 0.5s linear infinite; margin-right: 6px; vertical-align: middle; }
@keyframes lcSpinBtn { to { transform: rotate(360deg); } }
.auth-shell {
    position: relative;
    overflow: hidden;
}
.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.18), transparent 42%);
    pointer-events: none;
}
.auth-shell-inner {
    position: relative;
    z-index: 1;
}
.auth-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2);
}
.dark-mode .auth-shell {
    background: radial-gradient(circle at top, rgba(59,130,246,0.2), transparent 32%), linear-gradient(160deg, #020617 0%, #111827 50%, #172554 100%);
}
.dark-mode .auth-shell::before {
    background: radial-gradient(circle at top, rgba(129,140,248,0.24), transparent 38%);
}
.dark-mode .auth-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(99, 102, 241, 0.28);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
    color: #e5e7eb;
    backdrop-filter: blur(10px);
}
.dark-mode .bg-white, .dark-mode .bg-gray-50 { background-color: #0f172a !important; }
.dark-mode .text-gray-900, .dark-mode .text-gray-800 { color: #f8fafc !important; }
.dark-mode .text-gray-700, .dark-mode .text-gray-600 { color: #cbd5e1 !important; }
.dark-mode .text-gray-500, .dark-mode .text-gray-400 { color: #94a3b8 !important; }
.dark-mode .border-gray-300, .dark-mode .border-gray-200 { border-color: #475569 !important; }
.dark-mode .placeholder-gray-400::placeholder { color: #94a3b8 !important; }
.dark-mode .shadow-sm, .dark-mode .shadow, .dark-mode .shadow-2xl { box-shadow: 0 16px 36px rgba(2, 6, 23, 0.45) !important; }
.dark-mode input, .dark-mode select, .dark-mode textarea {
    background-color: rgba(15, 23, 42, 0.92) !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}
.dark-mode input::placeholder, .dark-mode textarea::placeholder { color: #94a3b8 !important; }
.dark-mode .bg-yellow-50 { background-color: rgba(120, 53, 15, 0.25) !important; }
.dark-mode .border-yellow-400 { border-color: #f59e0b !important; }
.dark-mode .text-yellow-700 { color: #fcd34d !important; }
.dark-mode .text-yellow-800 { color: #fde68a !important; }
.dark-mode .bg-green-50 { background-color: rgba(21, 128, 61, 0.18) !important; }
.dark-mode .border-green-400 { border-color: #34d399 !important; }
.dark-mode .text-green-700 { color: #86efac !important; }
.dark-mode .bg-red-50 { background-color: rgba(127, 29, 29, 0.22) !important; }
.dark-mode .border-red-400 { border-color: #f87171 !important; }
.dark-mode .text-red-700 { color: #fca5a5 !important; }
.dark-mode .bg-blue-50 { background-color: rgba(30, 64, 175, 0.18) !important; }
.dark-mode .border-blue-400 { border-color: #60a5fa !important; }
.dark-mode .text-blue-700 { color: #93c5fd !important; }

/* Professional polish pass: neutral auth shell */
.gradient-bg {
    background: #f6f8fb;
}
.auth-shell {
    color: #334155;
}
.auth-shell::before {
    display: none;
}
.auth-shell-inner {
    max-width: 28rem;
}
.auth-brand {
    margin-bottom: -0.75rem;
}
.auth-brand-icon {
    color: #2563eb !important;
    width: 40px;
    height: 40px;
}
.auth-brand-title {
    color: #0f172a !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
}
.auth-card {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.06);
}
.auth-card h1,
.auth-card h2,
.auth-card h3 {
    color: #0f172a !important;
    letter-spacing: 0;
}
.auth-card label {
    color: #334155 !important;
}
.auth-card input,
.auth-card select,
.auth-card textarea {
    border-radius: 8px !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}
.auth-card a {
    color: #2563eb;
    font-weight: 600;
}
.auth-card .rounded,
.auth-card .rounded-md,
.auth-card .rounded-lg,
.auth-card .rounded-xl {
    border-radius: 8px !important;
}
.dark-mode .auth-shell,
html.dark .auth-shell {
    background: #0f172a;
}
.dark-mode .auth-brand-title,
html.dark .auth-brand-title {
    color: #f8fafc !important;
}
.dark-mode .auth-brand-icon,
html.dark .auth-brand-icon {
    color: #60a5fa !important;
}
.dark-mode .auth-card,
html.dark .auth-card {
    background: #182235;
    border-color: #334155;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.7), 0 16px 32px rgba(2, 6, 23, 0.38);
    backdrop-filter: none;
}
.dark-mode .auth-card h1,
.dark-mode .auth-card h2,
.dark-mode .auth-card h3,
html.dark .auth-card h1,
html.dark .auth-card h2,
html.dark .auth-card h3 {
    color: #f8fafc !important;
}
.dark-mode .auth-card label,
html.dark .auth-card label {
    color: #cbd5e1 !important;
}
.dark-mode .auth-shell a,
html.dark .auth-shell a {
    color: #60a5fa !important;
}

/* Final core polish: auth form stability */
.auth-card {
    padding: clamp(1.5rem, 5vw, 2rem) !important;
}
.auth-card form {
    margin-top: 1.25rem;
}
.auth-card input:not([type="checkbox"]),
.auth-card select,
.auth-card textarea,
.auth-card button[type="submit"] {
    min-height: 42px;
}
.auth-card input[type="checkbox"] {
    border-radius: 4px !important;
}
.auth-card [role="alert"] {
    border-radius: 8px !important;
    border-left-width: 3px;
    box-shadow: none;
}
.auth-card p,
.auth-card label,
.auth-card a {
    letter-spacing: 0;
}
@media (max-width: 480px) {
    .auth-shell {
        align-items: flex-start;
        padding-top: 2rem;
    }
    .auth-brand {
        margin-bottom: -0.25rem;
    }
}
