@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --auth-bg: #eef4fb;
  --auth-panel: rgba(255,255,255,.82);
  --auth-panel-solid: #ffffff;
  --auth-line: #d9e3ef;
  --auth-text: #16243a;
  --auth-muted: #68788d;
  --auth-field: #f7f9fc;
  --auth-blue: #2457a6;
  --auth-cyan: #159a91;
  --auth-shadow: 0 28px 80px rgba(22,50,86,.16);
}

html[data-theme="dark"] {
  --auth-bg: #07111f;
  --auth-panel: rgba(15,27,44,.84);
  --auth-panel-solid: #101c2d;
  --auth-line: #293a50;
  --auth-text: #f4f7fb;
  --auth-muted: #9cabc0;
  --auth-field: #0b1727;
  --auth-blue: #4f8ff2;
  --auth-cyan: #21b4bb;
  --auth-shadow: 0 28px 90px rgba(0,0,0,.38);
}

html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; font-family: 'Inter', system-ui, sans-serif !important; background: var(--auth-bg) !important; color: var(--auth-text); }
.auth-page { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 42px clamp(24px, 5vw, 80px); background: radial-gradient(circle at 78% 7%, rgba(36,87,166,.2), transparent 34%), linear-gradient(135deg, var(--auth-bg), color-mix(in srgb, var(--auth-bg) 88%, #0d4670)); }
.auth-page::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(92,130,179,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(92,130,179,.12) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.auth-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.auth-glow-one { left: -180px; bottom: -190px; background: #00a6c8; }
.auth-glow-two { right: 8%; top: -240px; background: #316bde; }
.auth-shell { position: relative; z-index: 1; width: min(1320px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 560px); gap: clamp(50px, 7vw, 110px); align-items: center; }

.auth-intro { min-width: 0; padding: 22px 0; }
.auth-brand { display: inline-flex; align-items: center; gap: 13px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #fff; background: linear-gradient(135deg, #2457a6, #159a91); box-shadow: 0 14px 34px rgba(24,63,124,.2); text-decoration: none; font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -.045em; }
.auth-brand:hover { color: #fff; transform: translateY(-1px); }
.auth-brand b { color: var(--auth-blue); }
.auth-brand-mark { width: 48px; height: 48px; fill: none; stroke: var(--auth-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 16px rgba(36,87,166,.24)); }
.auth-airlife-logo { width: 170px; max-height: 64px; object-fit: contain; object-position: left center; }
.auth-intro-copy { margin-top: clamp(58px, 9vh, 104px); max-width: 590px; }
.auth-eyebrow { display: block; margin-bottom: 16px; color: var(--auth-blue); font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.auth-intro h1 { margin: 0; color: var(--auth-text); font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.055em; }
.auth-intro-copy p { max-width: 570px; margin: 22px 0 0; color: var(--auth-muted); font-size: clamp(.96rem, 1.3vw, 1.08rem); line-height: 1.75; }

.auth-preview { width: min(560px, 92%); margin-top: 38px; padding: 15px; border: 1px solid var(--auth-line); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--auth-panel-solid) 90%, transparent), color-mix(in srgb, var(--auth-blue) 8%, var(--auth-panel-solid))); box-shadow: 0 20px 55px rgba(10,39,78,.18); transform: perspective(900px) rotateY(3deg); }
.preview-topbar { height: 30px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--auth-line); }
.preview-topbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--auth-cyan); }
.preview-topbar span { width: 52px; height: 5px; border-radius: 5px; background: var(--auth-line); }
.preview-topbar b { width: 24px; height: 24px; margin-left: auto; border-radius: 8px; background: rgba(79,143,242,.22); }
.preview-grid { display: grid; grid-template-columns: 78px 1fr; min-height: 200px; padding-top: 14px; }
.preview-side { display: flex; flex-direction: column; gap: 13px; padding: 9px 15px 0 3px; border-right: 1px solid var(--auth-line); }
.preview-side i { height: 7px; border-radius: 5px; background: color-mix(in srgb, var(--auth-blue) 35%, var(--auth-line)); }
.preview-side i:nth-child(2) { width: 78%; }.preview-side i:nth-child(3) { width: 88%; }.preview-side i:nth-child(4) { width: 68%; }
.preview-main { padding: 8px 0 0 18px; }
.preview-chart { position: relative; height: 115px; overflow: hidden; border: 1px solid var(--auth-line); border-radius: 12px; background: color-mix(in srgb, var(--auth-field) 86%, transparent); }
.preview-chart::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 27px, var(--auth-line) 28px); opacity: .55; }
.preview-chart svg { position: absolute; inset: 20px 12px 12px; width: calc(100% - 24px); height: calc(100% - 32px); overflow: visible; }
.preview-chart path { fill: none; stroke: var(--auth-blue); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 5px 6px rgba(79,143,242,.3)); }
.preview-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.preview-metrics i { height: 42px; border: 1px solid var(--auth-line); border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--auth-blue) 13%, transparent), transparent); }
.auth-trust { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 24px; color: var(--auth-muted); font-size: .75rem; font-weight: 600; }
.auth-trust span { display: inline-flex; align-items: center; gap: 8px; }
.auth-trust i { width: 7px; height: 7px; border-radius: 50%; background: var(--auth-cyan); box-shadow: 0 0 0 4px rgba(21,154,145,.12); }

.auth-card { border: 1px solid var(--auth-line); border-radius: 24px; background: var(--auth-panel); box-shadow: var(--auth-shadow); backdrop-filter: blur(18px); }
.auth-card-inner { padding: clamp(34px, 5vw, 58px); }
.auth-card-header { padding-bottom: 30px; border-bottom: 1px solid var(--auth-line); text-align: center; }
.auth-card-header .auth-eyebrow { margin-bottom: 13px; }
.auth-card-header h2 { margin: 0; color: var(--auth-text); font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.045em; }
.auth-card-header p { margin: 10px 0 0; color: var(--auth-muted); }
.auth-form { display: grid; gap: 23px; margin-top: 32px; }
.auth-field label { display: block; margin-bottom: 9px; color: var(--auth-muted); font-size: .7rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > svg { position: absolute; z-index: 1; left: 17px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); fill: none; stroke: var(--auth-muted); stroke-width: 1.7; stroke-linecap: round; }
.auth-input { width: 100%; height: 58px; padding: 0 50px 0 53px; border: 1px solid var(--auth-line); border-radius: 12px; outline: none; color: var(--auth-text); background: var(--auth-field); font: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-input::placeholder { color: color-mix(in srgb, var(--auth-muted) 78%, transparent); }
.auth-input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-blue) 18%, transparent); background: var(--auth-panel-solid); }
.password-toggle { position: absolute; z-index: 2; right: 10px; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 9px; color: var(--auth-muted); background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--auth-blue); background: color-mix(in srgb, var(--auth-blue) 9%, transparent); }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-submit { height: 58px; display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 4px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(100deg, var(--auth-blue), var(--auth-cyan)); box-shadow: 0 14px 30px color-mix(in srgb, var(--auth-blue) 28%, transparent); font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s, filter .2s; }
.auth-submit:hover { transform: translateY(-2px); filter: brightness(1.07); }
.auth-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 28px 0 22px; color: var(--auth-muted); font-size: .72rem; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--auth-line); }
.auth-google { height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--auth-line); border-radius: 12px; color: var(--auth-text); background: color-mix(in srgb, var(--auth-panel-solid) 72%, transparent); text-decoration: none; font-size: .86rem; font-weight: 600; transition: border-color .2s, background .2s, transform .2s; }
.auth-google:hover { color: var(--auth-text); border-color: color-mix(in srgb, var(--auth-blue) 55%, var(--auth-line)); background: var(--auth-panel-solid); transform: translateY(-1px); }
.google-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #4285f4 0 45%, #34a853 45% 63%, #fbbc05 63% 80%, #ea4335 80%); font-weight: 800; }
.auth-card-footer { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 28px; color: var(--auth-muted); font-size: .7rem; }
.security-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dbd87; box-shadow: 0 0 0 4px rgba(45,189,135,.12); }

@media (max-width: 1050px) {
  .auth-shell { grid-template-columns: 1fr minmax(400px, 520px); gap: 42px; }
  .auth-preview { width: 100%; }
  .auth-intro h1 { font-size: 2.35rem; }
}

@media (max-width: 860px) {
  .auth-page { display: block; padding: 28px 20px 40px; }
  .auth-shell { display: flex; flex-direction: column; gap: 30px; }
  .auth-intro { width: min(560px,100%); padding: 0; }
  .auth-brand { margin-bottom: 26px; }
  .auth-intro-copy { margin-top: 0; text-align: center; }
  .auth-intro h1 { font-size: 2rem; }
  .auth-intro-copy p { margin: 16px auto 0; }
  .auth-preview, .auth-trust { display: none; }
  .auth-card { width: min(560px,100%); }
}

@media (max-width: 520px) {
  .auth-page { padding: 22px 14px 30px; }
  .auth-brand { font-size: 1.28rem; }
  .auth-brand-mark { width: 40px; height: 40px; }
  .auth-airlife-logo { width: 150px; }
  .auth-intro-copy p { font-size: .9rem; line-height: 1.6; }
  .auth-card { border-radius: 18px; }
  .auth-card-inner { padding: 28px 20px; }
  .auth-card-header { padding-bottom: 24px; }
  .auth-form { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
