/* NM Group — giriş və paketlər. Ana səhifə ilə eyni token sistemi (VIN lövhəsi + sənəd). */
:root {
  color-scheme: light;
  --paper: #edf0f3;
  --sheet: #ffffff;
  --ink: #14223a;
  --muted: #586579;
  --rule: #cdd4dd;
  --rule-strong: #9aa6b5;
  --accent: #2b4ba0;
  --accent-hover: #1f3a82;
  --accent-tint: #e4e9f6;
  --stamp: #b3261e;
  --pass: #1f7a4d;
  --plate: #d5dae0;
  --plate-edge: #a9b2bd;
  --plate-ink: #1b2533;
  --band: #0c1626;
  --sans: Bahnschrift, "DIN Alternate", "DIN Next", "D-DIN", "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, "DejaVu Sans Mono", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  font-family: var(--sans);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1724;
  --sheet: #162133;
  --ink: #e7ecf3;
  --muted: #9aa7b8;
  --rule: #2a3a52;
  --rule-strong: #4a5d78;
  --accent: #8fa9f2;
  --accent-hover: #b3c5f7;
  --accent-tint: #1f2c48;
  --stamp: #ff8a80;
  --pass: #6fd3a0;
  --band: #08101c;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.auth-shell { width: min(100% - 48px, 1080px); margin: 0 auto; }

/* Dekorativ fon artıq istifadə olunmur */
.auth-background { display: none; }

/* Header: ana səhifənin hero zolağı ilə eyni */
.auth-header { height: 72px; background: var(--band); color: #f3f6fa; }
.auth-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-name { font-size: 20px; font-weight: 400; font-stretch: 87.5%; letter-spacing: .01em; }
.brand-name b { font-weight: 800; }
.auth-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.auth-nav a { text-decoration: none; }
.auth-nav a:hover { color: #b3c5f7; text-decoration: underline; text-underline-offset: 4px; }
.auth-preferences { display: flex; align-items: center; gap: 6px; }
.language-select, .theme-toggle { height: 36px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; background: rgb(255 255 255 / 7%); color: #fff; font-size: 14px; transition: border-color .15s ease-out, background-color .15s ease-out; }
.language-select { padding: 0 10px 0 14px; }
.language-select option { background: #fff; color: #14223a; }
.theme-toggle { width: 36px; display: grid; place-items: center; font-size: 17px; cursor: pointer; }
.language-select:hover, .theme-toggle:hover { border-color: rgb(255 255 255 / 50%); background: rgb(255 255 255 / 12%); }
.theme-toggle:active { transform: rotate(-20deg) scale(.92); }

/* ---------- Giriş ---------- */
.auth-main { flex: 1; display: grid; place-items: center; padding: 56px 0 72px; }
.login-card { width: min(100%, 440px); padding: 36px 36px 28px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.login-icon { width: 52px; height: 36px; display: grid; place-items: center; margin: 0 0 22px; border-radius: var(--radius-sm); background: var(--plate); color: var(--plate-ink); box-shadow: inset 0 0 0 1px var(--plate-edge); }
.login-icon svg { width: 22px; height: 22px; }
.auth-eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 15px; font-weight: 600; }
.login-card h1 { margin: 0; font-size: clamp(30px, 6vw, 38px); font-weight: 700; font-stretch: 87.5%; line-height: 1.05; }
.auth-copy { margin: 10px 0 26px; color: var(--muted); font-size: 16px; }
.auth-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.password-wrap { position: relative; }
.password-input { width: 100%; height: 52px; padding: 0 92px 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); background: var(--sheet); color: var(--ink); font-family: var(--mono); font-size: 16px; }
.password-input:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.password-toggle { position: absolute; top: 4px; right: 4px; height: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--accent); font-size: 14px; font-weight: 700; cursor: pointer; }
.password-toggle:hover { background: var(--accent-tint); }
.auth-error { min-height: 22px; margin: 8px 0 6px; color: var(--stamp); font-size: 14px; font-weight: 600; }
.auth-submit { width: 100%; height: 52px; border: 0; border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%); background: #2b4ba0; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color .15s ease-out; }
.auth-submit:hover { background: #1f3a82; }
.auth-submit:active, .package-buy:active { transform: translateY(1px); }
.auth-error:not(:empty) { animation: shake .3s ease-out; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth-submit:disabled { cursor: wait; opacity: .75; }
.auth-divider { height: 1px; margin: 24px 0 16px; background: var(--rule); }
.auth-foot { margin: 0; color: var(--muted); font-size: 15px; }
.auth-foot a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.auth-safe { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.auth-safe svg { color: var(--pass); }

/* ---------- Paketlər ---------- */
.packages-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; padding: 72px 0 88px; }
.packages-intro { grid-column: 1; grid-row: 1; padding-top: 8px; }
.package-card { grid-column: 2; grid-row: 1 / span 2; }
.packages-back { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; }
.packages-intro .auth-eyebrow { margin-bottom: 10px; }
.packages-intro h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); font-weight: 700; font-stretch: 87.5%; line-height: 1; }
.packages-intro p:last-child { max-width: 46ch; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.package-card { padding: 32px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.package-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.package-heading h2 { margin: 0; font-size: 26px; font-weight: 700; font-stretch: 87.5%; }
.package-heading p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.package-pill { padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; color: var(--accent); font-size: 14px; font-weight: 700; white-space: nowrap; }
.package-price { display: flex; align-items: baseline; gap: 6px; margin: 28px 0 0; font-size: 64px; font-weight: 700; font-stretch: 87.5%; line-height: 1; font-variant-numeric: tabular-nums; }
.package-price span { color: var(--muted); font-size: 18px; font-weight: 500; }
.package-note { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }
.package-buy { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%); background: #2b4ba0; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; transition: background-color .15s ease-out; }
.package-buy:hover { background: #1f3a82; }
.package-buy svg { transition: transform .18s ease-out; }
.package-buy:hover svg { transform: translateX(4px); }
.package-features { margin: 26px 0 0; padding: 0; list-style: none; }
.package-features li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.package-features svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.package-contact { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.packages-back { display: inline-block; margin-top: 20px; color: var(--accent); font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.auth-footer { padding: 22px 0; border-top: 1px solid var(--rule); color: var(--muted); text-align: center; font-size: 14px; }

@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.auth-header-inner { animation: fade .5s ease-out both; }
.login-card, .packages-intro, .package-card { animation: enter .6s ease-out both .08s; }
.package-card { animation-delay: .18s; }
.package-features li { animation: enter .45s ease-out both; }
.package-features li:nth-child(1) { animation-delay: .35s; }
.package-features li:nth-child(2) { animation-delay: .4s; }
.package-features li:nth-child(3) { animation-delay: .45s; }
.package-features li:nth-child(4) { animation-delay: .5s; }
.package-features li:nth-child(5) { animation-delay: .55s; }
.package-features li:nth-child(6) { animation-delay: .6s; }

@media (max-width: 820px) {
  .packages-main { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 60px; }
  .packages-intro, .package-card, .packages-back { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) {
  .auth-shell { width: min(100% - 32px, 1080px); }
  .auth-header { height: 64px; }
  .auth-nav { gap: 14px; font-size: 14px; }
  .auth-nav a[href="/home"] { display: none; }
  .auth-main { padding: 32px 0 48px; }
  .login-card { padding: 28px 20px 24px; }
  .package-card { padding: 24px 20px; }
  .package-price { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
