:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182c43;
  background: #082448;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
body.auth-page { margin: 0; min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-page a, .auth-page button, .auth-page input { -webkit-tap-highlight-color: transparent; }
.auth-page svg { flex: 0 0 auto; }
.secure-auth-header { background: #fff; border-bottom: 1px solid #e8edf2; }
.secure-auth-header-inner { max-width: 1280px; margin: auto; padding: 8px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.secure-auth-brand { position: relative; display: block; flex: 0 0 auto; width: 170px; height: 92px; overflow: hidden; }
.secure-auth-brand img { position: absolute; width: 170px; height: 170px; max-width: none; top: -40px; left: 0; object-fit: contain; }
.secure-auth-header-actions { display: flex; align-items: center; gap: 28px; }
.secure-auth-context { display: flex; align-items: center; gap: 8px; color: #65758a; font-size: .78rem; font-weight: 600; }
.secure-auth-home { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #243e5d; font-size: .86rem; font-weight: 650; text-decoration: none; }
.secure-auth-home:hover { color: #b82036; text-decoration: underline; text-underline-offset: 4px; }
.secure-auth-main { flex: 1; display: flex; align-items: center; padding: 64px 32px; background: radial-gradient(ellipse at 15% 15%, #173d651f, transparent 65%), linear-gradient(115deg, #082448, #0b2c50); }
.secure-auth-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 7vw, 104px); width: 100%; max-width: 1192px; margin: auto; }
.secure-auth-hero { grid-column: 1; grid-row: 1; color: #fff; min-width: 0; }
.auth-hero-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; font-size: .73rem; letter-spacing: .15em; font-weight: 750; color: #c8d7e9; }
.secure-auth-hero h2 { margin: 0; max-width: 560px; font-size: clamp(2.35rem, 3.5vw, 3.4rem); font-weight: 720; line-height: 1.13; letter-spacing: -.035em; }
.secure-auth-hero h2 span { display: block; color: #bacfe6; margin-top: 9px; }
.auth-hero-copy { max-width: 430px; margin: 26px 0 32px; font-size: 1rem; line-height: 1.8; color: #cad7e7; }
.auth-security-highlights { list-style: none; display: grid; gap: 23px; padding: 28px 0 0; margin: 0; border-top: 1px solid #ffffff24; }
.auth-security-highlights li { display: flex; align-items: flex-start; gap: 14px; }
.auth-security-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; background: #ffffff09; border: 1px solid #ffffff24; border-radius: 10px; color: #d7e5f5; }
.auth-security-highlights strong { display: block; font-size: .88rem; font-weight: 650; line-height: 1.45; }
.auth-security-highlights p { margin: 4px 0 0; color: #b7c9dd; font-size: .82rem; line-height: 1.6; }
.secure-auth-card { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; max-width: 540px; background: #fff; border: 1px solid #e3e8ee; border-radius: 20px; padding: 38px 40px 32px; box-shadow: 0 20px 60px #00132940; }
.auth-card-mark { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 22px; border: 1px solid #f1dfe3; border-radius: 13px; color: #b51f36; background: #fff6f7; }
.auth-step { margin: 0 0 12px; font-size: .67rem; font-weight: 750; color: #9b3445; letter-spacing: .13em; line-height: 1.5; }
.secure-auth-card h1 { margin: 0 0 14px; color: #132d4a; font-size: clamp(1.65rem, 2vw, 1.95rem); font-weight: 720; line-height: 1.23; letter-spacing: -.025em; overflow-wrap: break-word; }
.secure-auth-card h1:focus { outline: none; }
.auth-intro { margin: 0 0 25px; color: #617086; font-size: .89rem; line-height: 1.7; }
.secure-auth-card label { display: block; margin: 20px 0 8px; color: #30435a; font-size: .82rem; font-weight: 650; line-height: 1.5; }
.secure-auth-card input:not([type=checkbox]) { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid #bdc8d5; border-radius: 9px; background: #fff; font: inherit; font-size: 1rem; color: #182c43; }
.secure-auth-card input::placeholder { color: #8694a5; opacity: 1; }
.secure-auth-card input.auth-code-input:not([type=checkbox]) { min-height: 64px; text-align: center; font-size: 1.65rem; letter-spacing: .28em; font-variant-numeric: tabular-nums; padding-left: calc(14px + .28em); }
.secure-auth-card button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; max-width: 100%; padding: 13px 18px; border: 1px solid #b91e36; border-radius: 9px; background: #bd2139; color: #fff; font: 650 .9rem/1.4 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.secure-auth-card button:hover:not(:disabled) { background: #a81930; border-color: #a81930; }
.secure-auth-card form > button { width: 100%; margin-top: 25px; }
.secure-auth-card > button:not(.auth-link) { width: 100%; }
.secure-auth-card button:disabled { cursor: wait; opacity: .65; }
.secure-auth-card .auth-link { display: flex; min-height: 44px; border: 0; background: transparent; color: #355776; text-decoration: underline; text-decoration-color: #a5b7ca; text-underline-offset: 4px; padding: 11px 0; margin: 8px auto 0; text-align: center; font-size: .82rem; font-weight: 550; }
.secure-auth-card .auth-link:hover:not(:disabled) { color: #a81930; background: transparent; text-decoration-color: currentColor; }
.auth-card-note { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 0; padding: 14px; background: #f3f6fa; border: 1px solid #e7edf4; border-radius: 9px; color: #5e7086; font-size: .76rem; line-height: 1.65; }
.auth-card-note svg { color: #526c88; margin-top: 2px; }
.auth-hint { font-size: .79rem; line-height: 1.65; color: #64758a; }
.auth-notice { margin: 0 0 18px; padding: 13px 14px; font-size: .85rem; line-height: 1.6; color: #81293a; background: #fff2f3; border: 1px solid #f0cbd2; border-radius: 9px; overflow-wrap: anywhere; }
.auth-notice.success { background: #edf7f1; border-color: #c8e2d1; color: #205439; }
.auth-secret-label { font-size: .8rem; font-weight: 700; margin-bottom: 7px; }
.auth-setup-key { display: block; padding: 14px; background: #f0f4f8; border: 1px solid #e1e8f0; border-radius: 8px; word-break: break-all; font-size: 1rem; line-height: 1.6; user-select: all; }
.auth-recovery-codes { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; padding: 0; }
.auth-recovery-codes code { display: block; padding: 10px; background: #f0f4f8; border-radius: 6px; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.5; }
.secure-auth-card .auth-check { display: flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 500; line-height: 1.5; }
.auth-check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #b91e36; }
.auth-page button:focus-visible, .auth-page input:focus-visible, .auth-page a:focus-visible { outline: 3px solid #3d87ce; outline-offset: 3px; }
.secure-auth-footer { background: #061b35; border-top: 1px solid #ffffff0d; color: #aebfd2; font-size: .72rem; line-height: 1.65; }
.secure-auth-footer-inner { max-width: 1280px; margin: auto; min-height: 72px; padding: 19px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.secure-auth-footer p { margin: 0; }
.secure-auth-footer strong { color: #dbe5f1; font-weight: 600; }
.auth-footer-security { display: flex; align-items: center; gap: 8px; }
.auth-page .crm-context-header, .auth-page .admin-sidebar, .auth-page .agent-sidebar, .auth-page .menu-toggle { display: none !important; }
@media (max-width: 1024px) {
  .secure-auth-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .secure-auth-main { padding: 46px 28px; }
  .secure-auth-card { padding: 32px 28px 26px; }
  .secure-auth-hero h2 { font-size: 2.35rem; }
}
@media (max-width: 800px) {
  .secure-auth-header-inner { padding: 6px 24px; }
  .secure-auth-context { display: none; }
  .secure-auth-main { align-items: flex-start; padding: 30px 24px 42px; }
  .secure-auth-layout { max-width: 540px; grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .secure-auth-card { grid-column: 1; grid-row: 1; }
  .secure-auth-hero { grid-column: 1; grid-row: 2; padding: 0 12px; }
  .auth-hero-eyebrow { margin-bottom: 17px; }
  .secure-auth-hero h2 { font-size: 2.25rem; }
  .auth-hero-copy { max-width: none; margin: 20px 0 24px; font-size: .93rem; }
  .auth-security-highlights { gap: 20px; padding-top: 24px; }
  .secure-auth-footer-inner { flex-wrap: wrap; padding: 20px 28px; }
}
@media (max-width: 480px) {
  .secure-auth-header-inner { gap: 16px; padding: 4px 20px; }
  .secure-auth-brand { width: 144px; height: 80px; }
  .secure-auth-brand img { width: 144px; height: 144px; top: -32px; }
  .secure-auth-home { font-size: .8rem; gap: 5px; }
  .secure-auth-main { padding: 22px 16px 34px; }
  .secure-auth-card { border-radius: 16px; padding: 27px 23px 24px; }
  .auth-card-mark { width: 44px; height: 44px; margin-bottom: 19px; }
  .secure-auth-card h1 { font-size: 1.7rem; }
  .auth-intro { font-size: .86rem; margin-bottom: 22px; }
  .secure-auth-hero { padding: 0 8px; }
  .secure-auth-hero h2 { font-size: 2rem; }
  .secure-auth-footer-inner { display: grid; padding: 20px 24px; gap: 8px; }
}
@media (max-width: 360px) {
  .secure-auth-header-inner { padding-inline: 14px; gap: 8px; }
  .secure-auth-card { padding-inline: 19px; }
  .auth-recovery-codes { grid-template-columns: minmax(0, 1fr); }
}
