@charset "UTF-8";
/* FlightDelay AI — bright, friendly SaaS styling inspired by the reference's
   visual language; all application branding, interactions and content remain VAA. */
:root {
  --navy: #24264a;
  --navy2: #383a76;
  --blue: #5c67ee;
  --teal: #565ee2;
  --aqua: #9683f6;
  --light: #f7f8ff;
  --ink: #252a4b;
  --muted: #747d9d;
  --line: #e6e9f6;
  --white: #ffffff;
  --warning: #c07823;
  --red: #d65368;
  --green: #15916f;
  --shadow: 0 14px 44px rgba(72,80,144,.075);
  --primary-gradient: linear-gradient(112deg,#5265eb 0%,#7562e9 100%);
  --surface-glow: linear-gradient(135deg,#f1f4ff 0%,#faf8ff 54%,#eaf9ff 100%);
}
html { color-scheme: light; }
body, button, input, select, textarea, option {
  font-family: "Segoe UI", "Noto Sans", Roboto, Arial, sans-serif;
}
body { color:var(--ink); background:var(--light); font-size:14px; line-height:1.66; }
h1,h2,h3,h4,h5,h6 { letter-spacing:-.025em; line-height:1.31; font-weight:800; }
::selection { background:#d9ddff; color:#262b73; }
:focus-visible { outline:3px solid #9386f6; outline-offset:3px; }

/* Public pages — open and pastel rather than a dark split-screen. */
.auth-page {
  min-height:100vh;
  grid-template-columns:minmax(0,1.1fr) minmax(390px,.79fr);
  gap:22px;
  padding:22px;
  max-width:1680px;
  margin-inline:auto;
  background:transparent;
  align-items:stretch;
}
.auth-art {
  min-height:calc(100vh - 44px);
  padding:38px clamp(32px,4vw,74px) 27px;
  border-radius:30px;
  background:
    radial-gradient(circle at 91% 18%,rgba(193,206,255,.8),transparent 29%),
    radial-gradient(circle at 7% 82%,rgba(255,222,236,.63),transparent 31%),
    linear-gradient(140deg,#eef2ff 5%,#f8f6ff 62%,#e8f8ff 100%);
  border:1px solid #e1e7ff;
  color:#22294b;
  isolation:isolate;
}
.auth-art::after { content:""; position:absolute; width:380px; height:380px; right:-100px; top:-150px; border:1px solid #ffffffb7; border-radius:50%; pointer-events:none; z-index:-1; box-shadow:0 0 0 80px #ffffff34,0 0 0 165px #ffffff25; }
.auth-petal { position:absolute; border-radius:38% 62% 58% 42%/55% 42% 58% 45%; pointer-events:none; z-index:-1; }
.auth-petal-one { width:270px; height:270px; right:-132px; bottom:10%; background:linear-gradient(145deg,#bbc8ffb0,#d9d1ff88); transform:rotate(29deg); }
.auth-petal-two { width:150px; height:150px; left:-90px; top:30%; background:#f4daff77; transform:rotate(20deg); }
.logo-auth { gap:13px; letter-spacing:-.035em; text-transform:none; color:#26315d; font-size:19px; line-height:1.2; position:relative; z-index:2; }
.logo-auth .brand-accent { color:#6565e8; }
.logo-auth small { display:block; font-size:9px; line-height:1.5; color:#7982ad; letter-spacing:.095em; margin-top:3px; font-weight:800; }
.brand-image, .sb-brand-img { display:inline-flex; align-items:center; justify-content:center; background:#0b1d3b; padding:7px; flex:none; border-radius:13px; box-shadow:0 7px 18px #2d3d7f1e; }
.logo-auth .brand-image { width:55px; height:53px; }
.logo-auth img { width:100%; height:100%; border:0; border-radius:0; padding:0; background:transparent; object-fit:contain; }
.auth-main-copy { margin:auto 0; max-width:740px; padding:36px 0 25px; }
.eyebrow { font-size:10px; font-weight:850; letter-spacing:.12em; color:#6570e5; }
.auth-art .eyebrow { color:#5b65cb; }
.auth-announce { display:inline-flex; gap:9px; align-items:center; border-radius:99px; background:#fffdfef0; padding:9px 15px; border:1px solid #e3e6ff; box-shadow:0 9px 24px #7981ca16; letter-spacing:.045em; font-size:11px; }
.auth-announce span { font-size:14px; color:#7d6bf2; }
.auth-art h1 { font-size:clamp(39px,4vw,70px); font-weight:850; line-height:1.15; letter-spacing:-.045em; margin:25px 0 16px; }
.auth-art h1 span { display:inline-block; color:#5d62e7; background:linear-gradient(115deg,#5069ec 5%,#9664dc 90%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.auth-art p { color:#626f92; font-size:16px; line-height:1.8; max-width:575px; margin:0; }
.auth-features { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:28px; }
.auth-feature { background:#ffffffb7; border:1px solid #e2e8fc; border-radius:18px; padding:15px 15px 16px; box-shadow:0 10px 28px #8888d00a; backdrop-filter:blur(12px); }
.auth-feature .feature-icon { display:grid; place-items:center; width:37px; height:37px; border-radius:12px; background:linear-gradient(140deg,#e5e8ff,#f3eaff); color:#6169e4; font-size:19px; margin-bottom:10px; }
.auth-feature b { display:block; color:#333768; font-size:13px; line-height:1.35; }
.auth-feature small { display:block; color:#8990ab; font-size:10px; line-height:1.55; margin-top:5px; }
.auth-footer { color:#8790ae; font-size:11px; letter-spacing:.015em; position:relative; z-index:1; }
.flight-preview { background:#ffffffed; border:1px solid #e0e5fa; border-radius:22px; padding:19px 25px 15px; margin-top:21px; position:relative; box-shadow:0 25px 55px #6467af19; max-width:625px; transform:rotate(-.4deg); }
.flight-preview::before { content:'✦'; position:absolute; color:#b6a4ff; font-size:35px; top:-23px; right:25px; }
.flight-preview-top { display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid #edf0fa; padding-bottom:13px; }
.flight-kicker { font-weight:800; font-size:9px; letter-spacing:.13em; color:#777e9f; }
.live-dot { display:inline-block; width:7px; height:7px; background:#18ba98; border-radius:50%; margin-right:7px; box-shadow:0 0 0 4px #e2f8ed; }
.flight-latest { color:#626d9e; font-size:11px; }
.flight-latest b { background:#eeeaff; padding:3px 7px; border-radius:7px; color:#6757d7; }
.flight-preview-body { display:grid; grid-template-columns:minmax(80px,1fr) minmax(110px,1.5fr) minmax(80px,1fr); align-items:center; padding:17px 3px 14px; gap:8px; }
.airport-mini small { color:#9ba2bb; letter-spacing:.08em; font-size:9px; font-weight:700; display:block; }
.airport-mini strong { color:#353c72; font-size:33px; letter-spacing:-.045em; line-height:1.17; display:block; }
.airport-mini span { color:#7d88a7; font-size:11px; }
.airport-mini.right { text-align:right; }
.route-mini { position:relative; height:56px; display:flex; align-items:center; justify-content:center; }
.route-line { position:absolute; height:0; border-top:2px dashed #c4c9f0; width:100%; top:18px; }
.route-line::before,.route-line::after { content:''; position:absolute; top:-5px; width:7px; height:7px; border:2px solid #8a93ec; border-radius:50%; background:#fff; }
.route-line::before{left:0}.route-line::after{right:0}
.route-icon { font-size:20px; z-index:1; color:#5968ed; background:white; padding:0 7px; margin-top:-19px; }
.route-sub { position:absolute; bottom:0; font-size:9px; font-weight:800; color:#9993d3; letter-spacing:.1em; }
.flight-preview-bottom { border-top:1px solid #edf0fa; padding-top:13px; display:flex; justify-content:space-between; gap:7px; flex-wrap:wrap; color:#727e9c; font-size:10px; font-weight:700; }
.flight-preview-bottom span { display:flex; gap:7px; align-items:center; }
.flight-preview-bottom i { display:inline-grid; place-items:center; width:21px; height:21px; background:#edf0ff; border-radius:50%; color:#6876dc; font-size:9px; font-style:normal; }
.auth-side { align-items:center; padding:40px clamp(18px,4vw,65px); border:1px solid #e9ecf6; border-radius:30px; background:#fff; box-shadow:0 18px 45px #5b67b00a; }
.auth-box { max-width:445px; }
.auth-form-icon { width:53px; height:53px; border-radius:17px; display:grid; place-items:center; color:#fff; font-size:26px; background:var(--primary-gradient); box-shadow:0 12px 28px #5964eb45; margin-bottom:21px; }
.auth-box h2 { font-size:clamp(27px,2.5vw,36px); color:#252b4b; margin:9px 0 8px; font-weight:850; }
.auth-box>p { color:#7d85a0; margin:0 0 25px; font-size:13px; }
.auth-switch { border:1px solid #e9edfb; background:#f2f4ff; border-radius:14px; padding:5px; margin-bottom:23px; }
.auth-switch button { color:#7680a9; border-radius:10px; font-size:13px; padding:11px; }
.auth-switch button.active { color:#525bd7; background:white; box-shadow:0 6px 18px #6e71b21f; }
.auth-box label { color:#4f567b; }
.auth-box input { border-color:#dee4f5; border-radius:12px; padding:13px 15px; }
.auth-box .btn.full { margin-top:4px; min-height:50px; font-size:13px; }
.auth-security { display:flex; gap:10px; align-items:flex-start; font-size:11px; color:#8a91a9; background:#f8f9fd; border:1px solid #edf0fb; border-radius:12px; padding:12px; margin-top:19px; line-height:1.6; }
.security-shield { width:21px; height:21px; border-radius:50%; background:#e4f8f1; color:#168c71; display:grid; place-items:center; flex:none; font-size:12px; font-weight:800; }
.auth-help { margin-top:24px; padding-top:19px; border-top:1px solid #eef0fa; color:#828ba8; font-size:12px; text-align:center; }
.auth-help a { color:#6268e1; font-weight:800; }

/* Shared controls */
input,select,textarea { border:1px solid #dde3f1; border-radius:12px; padding:12px 14px; color:#31375a; background:#fff; }
input:focus,select:focus,textarea:focus { border-color:#7c85f2; box-shadow:0 0 0 4px #5f70f11c; }
input::placeholder { color:#a3adc1; }
label { color:#535d7e; letter-spacing:.005em; font-size:12px; }
.btn { border-radius:12px; padding:11px 18px; font-weight:800; transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,filter .2s ease; }
.btn.primary { background:var(--primary-gradient); border-color:#5b61e700; color:#fff; box-shadow:0 10px 24px #6065e83a; }
.btn.primary:hover { filter:brightness(1.06); box-shadow:0 12px 29px #5d63e855; transform:translateY(-1px); }
.btn.dark { background:#343a75; color:white; }
.btn.outline { border-color:#e0e5f5; color:#515e85; background:#fff; }
.btn.outline:hover { border-color:#bcc6f9; background:#f7f8ff; }
.btn.danger { background:#fff0f4; border-color:#f9d9e4; color:#c45069; }
.btn.mini { font-size:11px; padding:8px 12px; }
.badge { padding:5px 10px; font-size:11px; border-radius:99px; background:#eef0ff; color:#6465b6; }
.badge.blue { background:#e9f1ff; color:#526fd2; }
.badge.green { background:#e5f8f2; color:#158266; }
.badge.orange { background:#fff3e7; color:#b2722d; }
.badge.red { background:#ffeef0; color:#bc4c68; }
.kbd { color:#4d5c8a; background:#f5f6ff; border-color:#e9edfc; }
.notice { border-radius:16px; border-color:#f0e6cb; background:#fffaef; color:#8a713f; padding:16px 18px; }
.notice.info { border-color:#dce5ff; background:#f0f5ff; color:#536aa2; }
.empty-state { border-radius:16px; border-color:#e0e5fa; background:#fafbff; color:#858dab; }
.empty-state b { color:#4c5680; }
.divider { background:#edf0fa; }

/* App chrome — clean white navigation with a blue/purple active state. */
.sidebar { width:265px; color:#657092; background:#fff; border-right:1px solid #e8ecf7; box-shadow:8px 0 32px #5e6a9d08; }
.sb-brand { padding:25px 21px 20px; gap:11px; border-color:#edf0fa; }
.sb-brand-img { width:49px; height:48px; border-radius:13px; }
.sb-brand img { width:100%; height:100%; }
.sb-brand b { font-size:18px; color:#33395d; line-height:1.3; }
.sb-brand b em { color:#6a61dd; }
.sb-brand small { color:#98a0b9; letter-spacing:.055em; font-size:9px; }
.sb-nav { padding:16px 13px 22px; }
.sb-group { color:#a0a8bd; letter-spacing:.1em; font-size:10px; margin:23px 12px 10px; }
.sb-nav button { color:#677392; font-size:12.5px; font-weight:700; border-radius:12px; margin:5px 0; padding:12px 12px; gap:11px; }
.sb-nav button:hover { color:#555bd0; background:#f4f5ff; }
.sb-nav button.active { color:#fff; background:var(--primary-gradient); box-shadow:0 8px 18px #6061e329; }
.sb-nav .ico { width:24px; height:23px; display:inline-grid; place-items:center; border-radius:8px; font-size:17px; line-height:1; }
.sb-nav button:not(.active) .ico { color:#797fd6; background:#f0f1ff; }
.sb-bottom { padding:17px; border-color:#edf0fa; }
.sb-note { background:#f7f7ff; border-color:#eaebfc; color:#7d86a7; border-radius:15px; padding:15px; }
.sb-note b { color:#5055b1; }
.sb-bottom button { color:#6770a4; margin-top:10px; }
.sb-bottom button:hover { color:#5e61dc; }
.app-main { margin-left:265px; }
.topbar { min-height:76px; height:auto; padding:14px 32px; border-bottom:1px solid #e8ebf5; background:#fffffff0; backdrop-filter:blur(16px); }
.topbar .breadcrumb { color:#a1a9c1; font-size:11px; letter-spacing:.02em; }
.topbar .breadcrumb b { color:#434b79; font-size:12px; }
.crumb-arrow { color:#cbd1e5; padding:0 7px; }
.top-user .circle { width:41px; height:41px; border-radius:14px; color:#5964db; background:#eef0ff; }
.top-user strong { color:#343c63; font-size:12px; }
.top-user small { color:#9aa2b6; font-size:10px; }
.top-date { color:#8f98b4; border-right:1px solid #e4e7f5; }
.top-quick { font-size:11px; margin-right:8px; }
.top-menu { background:#eef0ff; color:#5964c4; border-radius:11px; }
.main-content { max-width:1740px; padding:30px clamp(20px,3.2vw,48px) 64px; }
.section-top { margin-bottom:22px; }
.section-top h1 { color:#2b3154; font-weight:850; font-size:clamp(25px,2.5vw,32px); line-height:1.3; margin:7px 0 2px; }
.section-top p { color:#828ba5; }
.foot { color:#a0a7bd; font-size:11px; margin-top:35px; }

/* Content surfaces and dashboards */
.card { border:1px solid #e6eafa; border-radius:20px; box-shadow:var(--shadow); padding:24px; }
.card h3 { color:#323a64; font-size:16px; line-height:1.4; font-weight:850; }
.card .card-sub { color:#8a92ac; }
.grid { gap:18px; }
.stat-card { border:1px solid #e8ebf9; border-radius:19px; box-shadow:var(--shadow); padding:25px 24px; background:#fff; }
.stat-card:after { width:135px; height:135px; top:-60px; right:-47px; background:#eff0ff; }
.stat-card .slabel { color:#8b94ae; font-size:12px; }
.stat-card .svalue { color:#333b70; font-size:clamp(25px,2.4vw,34px); line-height:1.32; position:relative; z-index:1; }
.stat-card .sdesc { color:#a0a8bd; }
.stat-icon { background:#eef0ff; color:#6566e5; border-radius:12px; height:39px; width:39px; position:relative; z-index:1; }
.hero-app { border-radius:23px; min-height:194px; margin-bottom:23px; padding:31px 36px; background:linear-gradient(108deg,#ebefff,#f5f0ff 65%,#e7f6ff); color:#343b71; border:1px solid #e0e7fb; box-shadow:0 20px 45px #7c84c30e; }
.hero-app:before { content:"✦"; position:absolute; right:18%; top:18px; font-size:28px; color:#aca4f9; opacity:.55; }
.hero-app:after { color:#7176e712; font-size:180px; top:-76px; right:7px; }
.hero-app .eyebrow { color:#6971dd; }
.hero-app h2 { color:#292f5a; font-size:27px; margin:10px 0 8px; font-weight:850; }
.hero-app p { color:#7c83aa; line-height:1.7; }
.hero-app .btn { flex:none; }
.table-wrap { border-radius:14px; border:1px solid #eff1f9; }
table { font-size:12px; }
th { background:#f9faff; color:#8892b0; border-color:#eef0f9; font-size:10px; }
td { color:#626f8c; border-color:#f0f2fa; }
td strong { color:#3a4569; }
tbody tr:hover td { background:#fafbff; }
.prob-view { gap:24px; }
.donut { box-shadow:0 10px 25px #6367c218; }
.donut-inner b { color:#363e75; }
.donut-inner span { color:#8f98ae; }
.prob-details .risklabel { color:#363c70; }
.mini-number { border-color:#e9ecfa; border-radius:15px; background:#fff; }
.mini-number b { color:#38416d; }
.factorbar .track { background:#edf0fc; }
.factorbar .track i { background:linear-gradient(90deg,#596beb,#a384f5); }
.bars { border-color:#e9ecf6; }
.barcol .bar { background:linear-gradient(180deg,#9b8af8,#576be9); border-radius:9px 9px 0 0; }
.barcol b { color:#505d96; }
.admin-blue { background:linear-gradient(110deg,#eceeff,#f5ecff); }
.modal { border-radius:21px; border:1px solid #e8ebfc; box-shadow:0 30px 85px #353b7c54; }
.modal::backdrop { background:#1a20588a; backdrop-filter:blur(3px); }
#toast .toast { background:#333965; border-color:#a69afa; border-radius:14px; box-shadow:0 14px 35px #272f7244; }
#toast .toast.success { border-color:#67d6b7; }
#toast .toast.error { border-color:#fb92a5; }

/* Responsive typography and surfaces, with generous space for Vietnamese accents. */
@media (max-width:1290px) {
  .auth-page { grid-template-columns:minmax(0,1fr) minmax(365px,.83fr); }
  .auth-art { padding:34px 35px 25px; }
  .auth-art h1 { font-size:clamp(40px,4.2vw,58px); }
  .auth-features { gap:8px; }
  .auth-feature { padding:13px; }
  .auth-side { padding-inline:30px; }
  .sidebar { width:234px; }
  .app-main { margin-left:234px; }
  .sb-brand { padding-inline:15px; }
  .sb-brand b { font-size:16px; }
  .sb-nav { padding-inline:9px; }
  .sb-nav button { font-size:12px; padding-inline:10px; }
}
@media (max-width:1020px) {
  .auth-page { grid-template-columns:1fr; gap:14px; padding:14px; }
  .auth-art { min-height:0; padding:25px 32px 28px; border-radius:25px; }
  .auth-main-copy { padding:27px 0 8px; margin:0; }
  .auth-art h1 { font-size:clamp(36px,5.9vw,51px); }
  .auth-art p { font-size:14px; }
  .auth-features { display:grid; margin-top:20px; }
  .flight-preview { max-width:610px; }
  .auth-footer { margin-top:18px; }
  .auth-side { padding:34px 25px; border-radius:25px; }
  .auth-box { max-width:490px; }
  .sidebar { width:265px; transform:translateX(-100%); transition:transform .22s ease; }
  .sidebar.open { transform:none; }
  .app-main { margin-left:0; }
  .scrim.open { display:block; background:#18205472; backdrop-filter:blur(2px); }
  .top-menu { display:inline-flex; }
  .topbar { min-height:70px; }
}
@media (max-width:700px) {
  .auth-page { padding:9px; gap:10px; }
  .auth-art { border-radius:22px; padding:21px 22px 20px; }
  .logo-auth { font-size:17px; }
  .auth-announce { font-size:9px; }
  .auth-art h1 { font-size:clamp(33px,7vw,43px); margin:18px 0 12px; line-height:1.22; }
  .auth-features { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .auth-feature small { display:none; }
  .flight-preview { padding:15px; border-radius:18px; }
  .flight-preview-body { padding:14px 0; }
  .flight-preview-bottom { display:none; }
  .airport-mini strong { font-size:28px; }
  .auth-side { border-radius:22px; padding:28px 20px 32px; }
  .auth-form-icon { margin-bottom:18px; }
  .auth-box h2 { font-size:30px; }
  .main-content { padding:21px 14px 44px; }
  .topbar { padding:12px 14px; }
  .top-date, .top-quick { display:none; }
  .topbar .breadcrumb { font-size:10px; }
  .section-top { flex-direction:column; align-items:flex-start; }
  .section-top h1 { font-size:25px; }
  .card { padding:19px 16px; border-radius:17px; }
  .stat-card { padding:19px; }
  .grid.two,.grid.three,.grid.four,.grid.halfwide { grid-template-columns:1fr; }
  .form-grid,.form-grid.three,.form-grid.four { grid-template-columns:1fr; }
  .hero-app { padding:23px 21px; border-radius:19px; flex-direction:column; align-items:flex-start; gap:18px; }
  .hero-app h2 { font-size:23px; }
  .prob-view { gap:16px; }
}
@media (max-width:390px) {
  .auth-features { gap:7px; }
  .auth-feature { padding:9px; border-radius:12px; }
  .auth-feature b { font-size:11px; }
  .auth-feature .feature-icon { width:30px; height:30px; font-size:15px; }
  .flight-latest { display:none; }
  .airport-mini strong { font-size:24px; }
  .top-user>div:last-child { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* Mobile priority: keep the sign-in form and key metrics near the first screen. */
@media (max-width:700px) {
  .auth-main-copy { padding:19px 0 7px; }
  .auth-features,.flight-preview { display:none; }
  .auth-footer { margin-top:17px; }
  .grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .stat-card { padding:15px 14px; border-radius:16px; }
  .stat-card .slabel { line-height:1.45; font-size:11px; }
  .stat-card .svalue { font-size:25px; }
  .stat-card .sdesc { font-size:10px; line-height:1.5; }
}
