:root {
  --an-navy: #082957;
  --an-blue: #176bd8;
  --an-cyan: #63c7c7;
  --an-gold: #e9b553;
  --an-ink: #10294b;
  --an-muted: #61708a;
  --an-line: #d8e0eb;
  --an-paper: #fbfaf7;
  --an-white: #fff;
}

.an-login-page { min-height: 100svh; overflow: hidden; }
.an-login-shell { display: grid; grid-template-columns: minmax(0, 2fr) minmax(390px, 1fr); min-height: 100svh; }
.an-login-story { position: relative; min-height: 100svh; overflow: hidden; background: var(--an-paper); }
.an-login-story__content { position: relative; z-index: 2; max-width: 760px; padding: clamp(42px, 7vh, 84px) clamp(38px, 7vw, 104px); }
.an-brand__fallback { display: inline-flex; align-items: center; gap: 15px; color: var(--an-navy); text-decoration: none; }
.custom-logo { width: auto; max-width: 290px; height: auto; max-height: 74px; }
.an-brand__mark { width: 55px; height: 55px; flex: none; }
.an-brand__fallback span { display: grid; }
.an-brand__fallback strong { font-size: clamp(24px, 2vw, 36px); line-height: 1; letter-spacing: -.035em; }
.an-brand__fallback small { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.an-greeting { margin-top: clamp(74px, 13vh, 138px); }
.an-greeting h1 { margin: 0; color: var(--an-navy); font-size: clamp(38px, 4vw, 64px); line-height: 1.2; letter-spacing: .025em; }
.an-greeting p { margin: 17px 0 0; font-size: clamp(20px, 2vw, 29px); font-weight: 650; }
.an-greeting time { display: block; margin-top: 34px; font-size: 17px; font-weight: 650; }
.an-daily-message { display:block; margin-top:14px; color:var(--an-muted); font-size:13px; font-weight:600; letter-spacing:.02em; }
.an-growth { position: absolute; z-index: 1; inset: 25% -4% -5% -7%; pointer-events: none; }
.an-growth svg { width: 100%; height: 100%; overflow: visible; }
.an-growth__lines path { fill: none; stroke: #1764c8; stroke-width: 1.35; opacity: .55; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: an-draw 2.2s cubic-bezier(.2,.75,.25,1) forwards; }
.an-growth__lines path:nth-child(2) { opacity: .26; animation-delay: .12s; }
.an-growth__lines path:nth-child(3) { opacity: .38; animation-delay: .22s; }
.an-growth__lines path:nth-child(4) { opacity: .20; animation-delay: .32s; }
.an-growth__lines path:nth-child(5) { opacity: .28; animation-delay: .42s; }
.an-growth__lines path:nth-child(6) { opacity: .16; animation-delay: .52s; }
.an-growth__lines path:nth-child(7) { opacity: .24; animation-delay: .62s; }
.an-growth__lines path:nth-child(8) { opacity: .19; animation-delay: .72s; }
.an-growth__lines path:nth-child(9) { opacity: .31; animation-delay: .82s; }
.an-growth__nodes .node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: an-node 600ms ease-out forwards, an-breathe 3.4s ease-in-out 2.8s infinite; }
.an-growth__nodes .node:nth-child(1) { animation-delay: 1.1s, 2.8s; }
.an-growth__nodes .node:nth-child(2) { animation-delay: 1.35s, 3s; }
.an-growth__nodes .node:nth-child(3) { animation-delay: 1.55s, 3.2s; }
.an-growth__nodes .node:nth-child(4) { animation-delay: 1.75s, 3.4s; }
.an-growth__nodes .node:nth-child(5) { animation-delay: 1.95s, 3.6s; }
.an-growth__nodes .node:nth-child(6) { animation-delay: 2.15s, 3.8s; }
.an-growth__nodes .node:nth-child(7) { animation-delay: 2.35s, 4s; }
.an-growth__nodes .node:nth-child(8) { animation-delay: 2.55s, 4.2s; }
.an-growth__nodes .node:nth-child(9) { animation-delay: 2.75s, 4.4s; }
.node--blue { fill: #fff; stroke: var(--an-blue); stroke-width: 2.5; }
.node--cyan { fill: #fff; stroke: var(--an-cyan); stroke-width: 2.5; }
.node--gold { fill: #fff; stroke: var(--an-gold); stroke-width: 2.5; filter: drop-shadow(0 0 7px rgba(233,181,83,.55)); }
.an-growth__travelers { pointer-events: none; }
.an-growth__travelers .traveler { fill: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.an-growth__travelers .traveler--blue { stroke: var(--an-blue); filter: drop-shadow(0 0 4px rgba(23,107,216,.38)); }
.an-growth__travelers .traveler--cyan { stroke: var(--an-cyan); filter: drop-shadow(0 0 5px rgba(99,199,199,.42)); }
.an-growth__travelers .traveler--gold { stroke: var(--an-gold); filter: drop-shadow(0 0 6px rgba(233,181,83,.52)); }
.an-growth__travelers .traveler--soft { opacity: .58; }
.an-growth-caption { position: absolute; z-index: 2; left: clamp(38px, 7vw, 104px); bottom: 32px; margin: 0; color: #62738d; font-size: 13px; letter-spacing: .04em; }

.an-login-panel { display: grid; place-items: center; min-height: 100svh; padding: 48px clamp(32px, 4vw, 70px); background: rgba(250,252,255,.96); border-left: 1px solid rgba(12,48,91,.1); }
.an-login-panel__inner { width: min(100%, 410px); }
.an-mobile-brand, .an-mobile-greeting { display: none; }
.an-gateway { text-align: center; }
.an-gateway__security-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 17px; color: var(--an-navy); }
.an-gateway__security-icon svg { width: 52px; height: 52px; }
.an-gateway__lead { margin: 0 0 38px; color: var(--an-ink); font-size: 16px; font-weight: 650; line-height: 1.8; }
.an-gateway__lead span { display: block; }
.an-button { width: 100%; min-height: 60px; border: 1px solid var(--an-navy); border-radius: 5px; font: inherit; font-size: 17px; font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.an-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(8,41,87,.12); }
.an-button:focus-visible, .an-text-link:focus-visible, .an-dialog__close:focus-visible { outline: 3px solid rgba(23,107,216,.28); outline-offset: 3px; }
.an-button--primary { display: flex; align-items: center; justify-content: center; gap: 13px; color: #fff; background: var(--an-navy); text-decoration:none; }
.an-button--primary svg { width: 27px; height: 27px; }
.an-button--secondary { color: var(--an-navy); background: transparent; }
.an-gateway__separator { display: flex; align-items: center; gap: 14px; margin: 27px 0; color: var(--an-muted); font-size: 12px; }
.an-gateway__separator::before, .an-gateway__separator::after { content: ""; flex: 1; height: 1px; background: var(--an-line); }
.an-gateway__links { display: grid; gap: 18px; margin-top: 36px; text-align: left; }
.an-text-link { display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0; color: #1b62bb; background: none; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.an-text-link::after { content: "›"; font-size: 24px; font-weight: 400; }
.an-gateway__message { padding: 12px 14px; margin-bottom: 20px; border-left: 3px solid #c83232; color: #802424; background: #fff5f4; text-align: left; font-size: 14px; }
.an-gateway-missing { padding: 24px; border: 1px solid var(--an-line); }

.an-dialog { width: min(92vw, 450px); padding: 0; border: 0; border-radius: 8px; color: var(--an-ink); box-shadow: 0 28px 80px rgba(8,28,55,.24); }
.an-dialog::backdrop { background: rgba(4,18,38,.56); backdrop-filter: blur(3px); }
.an-dialog__inner { padding: 34px; }
.an-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.an-dialog__head h2 { margin: 0; font-size: 23px; }
.an-dialog__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f3f7; color: var(--an-ink); font-size: 25px; cursor: pointer; }
.an-field { display: grid; gap: 8px; margin-bottom: 18px; text-align: left; }
.an-field label { font-size: 14px; font-weight: 700; }
.an-field input { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid #b8c4d3; border-radius: 5px; background: #fff; font: inherit; }
.an-field input:focus { border-color: var(--an-blue); outline: 3px solid rgba(23,107,216,.14); }
.an-dialog .an-button { margin-top: 8px; }
.an-dialog__note { margin: 18px 0 0; color: var(--an-muted); font-size: 12px; line-height: 1.7; }

.an-login-page.is-authenticating .an-growth__lines path { animation: an-exit-flow .8s ease-in forwards; }
.an-login-page.is-authenticating .an-growth__nodes .node { animation: an-exit-node .65s ease-in forwards; }

@keyframes an-draw { to { stroke-dashoffset: 0; } }
@keyframes an-node { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes an-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes an-exit-flow { to { stroke-dashoffset: -1; opacity: .9; } }
@keyframes an-exit-node { to { transform: translate(18px,-8px) scale(.25); opacity: 0; } }

@media (max-width: 900px) {
  .an-login-page { overflow: auto; }
  .an-login-shell { display: block; min-height: 100svh; background: var(--an-paper); }
  .an-login-story { position: absolute; inset: 0; min-height: 100svh; background: transparent; }
  .an-login-story__content, .an-growth-caption { display: none; }
  .an-growth { inset: 18% -26% 28% -52%; opacity: .95; }
  .an-login-panel { position: relative; z-index: 2; display: block; min-height: 100svh; padding: max(34px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); border: 0; background: transparent; }
  .an-login-panel__inner { display: flex; flex-direction: column; width: 100%; max-width: 440px; min-height: calc(100svh - 68px); margin: 0 auto; }
  .an-mobile-brand { display: block; text-align: center; }
  .an-mobile-brand .an-brand__fallback { justify-content: center; }
  .an-mobile-brand .an-brand__mark { width: 42px; height: 42px; }
  .an-mobile-brand .an-brand__fallback strong { font-size: 24px; }
  .an-mobile-brand .an-brand__fallback small { font-size: 9px; }
  .an-mobile-brand .custom-logo { max-width: 220px; max-height: 58px; }
  .an-mobile-greeting { display: block; margin-top: 44px; text-align: center; }
  .an-mobile-greeting p { margin: 0; color: var(--an-navy); font-size: clamp(27px, 8vw, 36px); font-weight: 780; }
  .an-mobile-greeting span { display: block; margin-top: 8px; font-weight: 650; }
	.an-mobile-greeting time { display:block; margin-top:14px; color:var(--an-muted); font-size:13px; font-weight:700; }
	.an-mobile-greeting small { display:block; max-width:340px; margin:13px auto 0; color:#55708c; font-size:11px; font-weight:600; line-height:1.7; }
	.an-gateway { display: block; margin-top: auto; padding-top: clamp(70px, 14vh, 150px); padding-bottom: 10px; }
	.an-login-panel .an-gateway[data-an-gateway] { transform:translateY(clamp(-88px,-6vh,-54px)); }
	.an-login-panel .an-gateway:not([data-an-gateway]) { width:min(100%,360px); margin:clamp(92px,10vh,118px) auto 0; padding:0; }
	.an-login-panel .an-gateway:not([data-an-gateway]) .an-button { min-height:58px; box-shadow:0 12px 28px rgba(8,41,87,.14); }
	.an-gateway__security-icon { position: static; width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(16,62,118,.12); transform: none; }
	.an-gateway__security-icon svg { width: 40px; height: 40px; color: var(--an-blue); }
	.an-gateway__lead { display: none; }
	.an-gateway__links { display: none; }
	.an-button { min-height:56px; }
	.an-gateway__separator { margin:18px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .an-growth__travelers { display: none; }
}

.an-setup-page { overflow:auto; background:#fbfaf7; }
.an-setup-shell { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100svh; padding:40px 20px; overflow:hidden; }
.an-setup-shell::before { content:""; position:absolute; z-index:-1; inset:auto -20% -25% 20%; height:55%; background:radial-gradient(circle at 55% 55%,rgba(32,111,211,.10),transparent 55%); }
.an-setup-brand { width:min(100%,420px); margin:0 auto 26px; text-align:center; }
.an-setup-brand .an-brand__fallback { justify-content:center; }
.an-setup-brand .custom-logo { max-width:250px; max-height:70px; }
.an-setup-card { width:min(100%,500px); padding:clamp(26px,5vw,44px); border:1px solid #d8e1ec; border-radius:12px; background:rgba(255,255,255,.96); box-shadow:0 22px 60px rgba(10,49,95,.10); color:#173657; text-align:left; }
.an-setup-card h1 { margin:8px 0 12px; color:#082f62; font-size:clamp(25px,5vw,34px); line-height:1.35; }
.an-setup-card>p { margin:0 0 24px; color:#60758d; line-height:1.8; }
.an-setup-eyebrow { color:#176bd8; font-size:10px; font-weight:850; letter-spacing:.16em; }
.an-setup-mark { display:grid; place-items:center; width:58px; height:58px; margin:0 auto 15px; border-radius:50%; color:#08766d; background:#e3f5f1; font-size:28px; font-weight:800; }
.an-setup-mark.is-error { color:#b42e2e; background:#fff0ef; }
.an-setup-field { display:grid; gap:7px; margin:18px 0; color:#173657; font-weight:750; }
.an-setup-field input { width:100%; min-height:50px; padding:10px 13px; border:1px solid #c7d4e3; border-radius:7px; outline:0; background:#fff; font:inherit; box-sizing:border-box; }
.an-setup-field input:focus { border-color:#176bd8; box-shadow:0 0 0 3px rgba(23,107,216,.10); }
.an-setup-field small,.an-setup-note,.an-setup-support { color:#708299; font-size:11px; font-weight:500; }
.an-setup-card form .an-button { width:100%; margin-top:8px; }
.an-setup-card>.an-button { width:100%; }
.an-setup-note { margin:18px 0 0!important; text-align:center; }
.an-setup-support { margin:22px 0 0; text-align:center; }
@media(max-width:600px){.an-setup-shell{justify-content:flex-start;padding-top:max(35px,env(safe-area-inset-top))}.an-setup-brand{margin-bottom:20px}.an-setup-card{padding:26px 20px;border-radius:9px}}
