* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --brand: #a60604; --ink: #17202a; --muted: #667085; --line: #dfe3e8; }
body { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 30rem), linear-gradient(145deg, #f8fafc 0%, #eef1f5 100%); color: var(--ink); font-family: 'Inter', sans-serif; }
.auth-wrapper { width: 100%; max-width: 460px; }
.auth-card { padding: 44px 42px 38px; border: 1px solid rgba(255,255,255,.85); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.12); text-align: center; }
.brand-logo { margin-bottom: 28px; }
.brand-logo img { width: auto; max-width: 190px; height: auto; max-height: 72px; object-fit: contain; }
.auth-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, white); color: var(--brand); }
.auth-header { margin-bottom: 28px; }
.auth-header h1 { margin-bottom: 10px; font-size: clamp(24px,5vw,30px); line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.auth-header p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; margin-bottom: 8px; color: #344054; font-size: 14px; font-weight: 600; }
.field-control { position: relative; }
.field input { width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s,box-shadow .2s; }
.field-control input[type='password'], .field-control input[type='text'] { padding-right: 48px; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 14%,transparent); }
.password-toggle { position: absolute; top: 50%; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 8px; outline: none; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover,.password-toggle:focus-visible { background: #f2f4f7; color: var(--ink); }
.password-help { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.primary-button { width: 100%; min-height: 52px; margin-top: 8px; padding: 14px; border: 0; border-radius: 11px; background: var(--brand); box-shadow: 0 10px 24px color-mix(in srgb,var(--brand) 28%,transparent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .2s,filter .2s; }
.primary-button:hover { filter: brightness(.92); transform: translateY(-1px); }
.primary-button:focus-visible { outline: 3px solid color-mix(in srgb,var(--brand) 28%,transparent); outline-offset: 3px; }
.alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 13px 14px; border: 1px solid; border-radius: 11px; text-align: left; font-size: 13px; line-height: 1.5; }
.alert-danger { border-color: #fecdca; background: #fef3f2; color: #912018; }
.alert-success { border-color: #abefc6; background: #ecfdf3; color: #067647; }
.alert svg { flex: 0 0 auto; margin-top: 1px; }
.auth-footer { margin-top: 24px; font-size: 14px; }
.auth-footer a,.success-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-footer a:hover,.success-link:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width:520px) { body { padding: 14px; } .auth-card { padding: 34px 24px 30px; border-radius: 18px; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
