/* VNTerm website — design system shared by every page (the home page adds home.css).
   Black and blue, like the apps' sign-in screen: blue aurora light, frosted-glass cards. */
:root {
  --bg: #04060b; --surface: #0a0e18; --surface-2: #0f1524; --text: #eef3ff; --muted: #8a97b3;
  --line: rgba(147, 197, 253, .12); --accent: #3b82f6; --accent-2: #2563eb; --accent-soft: rgba(59, 130, 246, .14);
  --radius: 16px; --shadow: 0 1px 2px rgba(0, 0, 0, .35); --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, .85);
  --link: #60a5fa;
  --grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  --grad-text: linear-gradient(100deg, #bfdbfe 0%, #60a5fa 45%, #3b82f6 100%);
  --glass: rgba(9, 13, 24, .62);
  --glass-edge: linear-gradient(160deg, rgba(191, 219, 254, .32), rgba(255, 255, 255, .03) 38%, rgba(255, 255, 255, .02) 62%, rgba(59, 130, 246, .45));
  --card: linear-gradient(180deg, rgba(147, 197, 253, .05), rgba(147, 197, 253, .015));
}
body { background: var(--bg); font-feature-settings: "cv11", "ss01"; }
::selection { background: rgba(59, 130, 246, .38); color: #fff; }
a { color: var(--link); }
h1, h2, h3 { color: #fff; }
.lead { color: rgba(219, 232, 255, .66); }
.wrap.narrow { max-width: 860px; }

/* header: glass bar */
.nav { background: rgba(4, 6, 11, .66); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(147, 197, 253, .08); }
.nav-inner { height: 64px; }
.nav-links { justify-content: center; }
.nav-links a { position: relative; color: rgba(219, 232, 255, .66); font-weight: 500; padding: 6px 2px; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-web { color: #fff; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(96, 165, 250, .35); background: rgba(59, 130, 246, .1); }
.nav-links .nav-web:hover { border-color: rgba(96, 165, 250, .7); background: rgba(59, 130, 246, .18); }

/* footer */
.footer { background: #020307; border-top: 1px solid rgba(147, 197, 253, .08); padding-top: 48px; }
.footer-col a { color: rgba(219, 232, 255, .62); } .footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col b { color: rgba(219, 232, 255, .4); }
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* shared blocks used by inner pages (download, team, docs, account…) */
.section { padding: 72px 0; }
.hero2 { padding: 96px 0 48px; background: radial-gradient(ellipse 55% 80% at 30% -10%, rgba(29, 78, 216, .42), transparent 70%), radial-gradient(ellipse 45% 70% at 80% 0%, rgba(14, 116, 204, .26), transparent 70%); }
.hero2 h1 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { background: rgba(59, 130, 246, .1); border-color: rgba(96, 165, 250, .28); color: #bfdbfe; }
.feat, .plat, .panel, .stat, .release, .auth-card { background: var(--card); border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.table { background: rgba(147, 197, 253, .025); border-radius: 14px; }
.ver { background: var(--grad); }
.doc h2 { color: #fff; }
.toc a { color: #a8b1c6; }

/* signed-in account menu in the header */
.nav-account { position: relative; }
.nav-user { display: flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid rgba(148, 163, 196, .16); background: rgba(255, 255, 255, .04); color: #aab2c6; cursor: pointer; transition: border-color .15s, background .15s; }
.nav-user:hover, .nav-account.open .nav-user { border-color: rgba(148, 163, 196, .35); background: rgba(255, 255, 255, .07); color: #fff; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #60a5fa, #1d4ed8); letter-spacing: .02em; }
.nav-avatar.lg { width: 38px; height: 38px; font-size: .92rem; flex: none; }
.nav-caret svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-account.open .nav-caret svg { transform: rotate(180deg); }
.nav-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 6px; border-radius: 14px; background: #121a2b; border: 1px solid rgba(148, 163, 196, .18); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .2); z-index: 30; animation: nav-pop .14s ease-out; }
@keyframes nav-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.nav-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(148, 163, 196, .12); min-width: 0; }
.nav-menu-head div { display: flex; flex-direction: column; min-width: 0; }
.nav-menu-head b { color: #fff; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-menu-head span { color: #8b93a9; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: none; border-radius: 9px; background: none; color: #d6dbe7; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.nav-menu-item:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-menu-item.danger { color: #f87171; }
.nav-menu-item.danger:hover { background: rgba(248, 113, 113, .1); color: #fca5a5; }
.nmi-ico svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-menu-sep { height: 1px; margin: 4px 6px; background: rgba(148, 163, 196, .12); }

/* oauth result page */
.oauth-done { padding: 48px 24px; border-radius: 20px; border: 1px solid rgba(148, 163, 196, .16); background: rgba(255, 255, 255, .03); }
.oauth-done h1 { font-size: 1.8rem; margin: 16px 0 8px; color: #fff; }
.oauth-done p { color: #aab2c6; margin: 0 0 8px; }
.oauth-ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: #fff; }
.oauth-done.ok .oauth-ico { background: #16a34a; box-shadow: 0 0 40px -6px rgba(34, 197, 94, .6); }
.oauth-done.fail .oauth-ico { background: #dc2626; }

/* "Continue with Google / Apple" */
.oauth-box { display: grid; gap: 10px; margin: 18px 0 6px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; transition: filter .15s, border-color .15s; }
.oauth-btn svg { width: 18px; height: 18px; }
.oauth-btn.google { background: #131314; color: #e3e3e3; border: 1px solid #8e918f; }
.oauth-btn.apple { background: #fff; color: #000; border: 1px solid #fff; }
.oauth-btn.telegram { background: #2aabee; color: #fff; border: 1px solid #2aabee; }
.oauth-btn:hover { filter: brightness(1.12); }
.oauth-btn:disabled { opacity: .6; cursor: progress; }
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; color: #7f89a3; font-size: .82rem; }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: rgba(148, 163, 196, .16); }
.notice-ok { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); color: #bbf7d0; font-size: .9rem; }
input[readonly] { opacity: .75; cursor: not-allowed; }

/* account: linked Google / Apple accounts */
.identities { display: grid; gap: 10px; margin: 12px 0 28px; }
.identity { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 196, .14); background: rgba(255, 255, 255, .02); }
.identity .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.identity b { color: #fff; }

/* ---- buttons: pill, gradient primary */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .005em; transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: none; }
.btn.primary {
  background: var(--grad);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px -12px rgba(37, 99, 235, .9);
}
.btn.primary:hover { background: var(--grad); filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 16px 36px -12px rgba(59, 130, 246, 1); }
.btn.ghost { background: rgba(147, 197, 253, .05); border: 1px solid rgba(147, 197, 253, .16); color: #e6eeff; box-shadow: none; }
.btn.ghost:hover { background: rgba(147, 197, 253, .09); border-color: rgba(96, 165, 250, .45); }
.btn:focus-visible { outline: 2px solid rgba(96, 165, 250, .7); outline-offset: 2px; }

/* header: small and quiet */
.nav .btn { padding: 6px 16px; font-size: .88rem; }
.nav .btn.ghost { background: transparent; border-color: transparent; color: #c3cadb; }
.nav .btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }

.oauth-btn { border-radius: 999px; font-weight: 500; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; color: #aab2c6; font-size: .82rem; font-weight: 600; cursor: pointer; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: #fff; background: rgba(255, 255, 255, .06); }
.lang-switch summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; border-radius: 14px; background: #121a2b; border: 1px solid rgba(148, 163, 196, .18); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .75); z-index: 30; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #d6dbe7; font-size: .9rem; }
.lang-menu a b { width: 24px; font-size: .72rem; color: #7f89a3; }
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.lang-menu a.on { color: #fff; background: rgba(59, 130, 246, .2); }

/* header fits longer languages (ru/de/fr) on one line */
.nav .wrap.nav-inner { max-width: 1240px; gap: 18px; }
.nav-links { gap: clamp(12px, 1.5vw, 26px); min-width: 0; }
.nav-links a { white-space: nowrap; font-size: .9rem; }
.nav-auth .btn { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links .nav-web { display: none; } /* still in the hero and footer */
}

/* ---- pricing (templates/pricing.html) */
.period-switch { display: inline-flex; gap: 4px; padding: 4px; margin-top: 26px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.period-switch button { font: inherit; font-size: .92rem; font-weight: 600; padding: 7px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.period-switch button.on { background: #fff; color: #0a0e18; }
.period-switch .save { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.period-switch button.on .save { background: #dcfce7; color: #15803d; }
.period-switch.sm { margin: 0; }
.period-switch.sm button { padding: 6px 14px; font-size: .88rem; }
.price-grid { display: grid; grid-template-columns: repeat(min(var(--n, 4), 4), minmax(0, 1fr)); gap: 16px; margin-top: 40px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(180deg, rgba(59, 130, 246, .12), var(--surface) 45%); box-shadow: 0 30px 80px -40px rgba(37, 99, 235, .7); }
.price-card.current { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 55%, transparent); }
.price-badge { position: absolute; top: -11px; left: 22px; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.price-card h2 { margin: 0; font-size: 1.35rem; }
.price-desc { margin: 0; color: var(--muted); font-size: .9rem; min-height: 3.2em; }
.price-line { display: flex; align-items: flex-end; gap: 8px; min-height: 58px; }
.price-amount { font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.price-unit { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.price-unit small { font-size: .78rem; }
.price-feats { border-top: 1px solid var(--line); padding-top: 14px; }
.price-plus { margin: 0 0 6px; font-size: .85rem; font-weight: 600; color: #c3c9d8; }
.price-feats .checks { margin: 0; font-size: .9rem; }
.price-feats .checks li { padding: 4px 0 4px 24px; }
.price-foot { margin-top: 26px; }
.compare-sec { padding-top: 8px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.compare th, .compare td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { position: sticky; top: 0; background: var(--surface-2); font-size: .95rem; }
.compare thead th.hl { color: var(--accent); }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare td:first-child b { display: block; font-weight: 600; }
.compare td:first-child span { display: block; font-size: .8rem; }
.compare .compare-group th { text-align: left; background: rgba(59, 130, 246, .07); color: #93c5fd; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.compare .cell i { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.compare .cell.yes i { border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2360a5fa' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.compare .cell.no i { width: 10px; height: 2px; background: rgba(148, 163, 196, .35); border-radius: 2px; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; } .price-desc { min-height: 0; } }

/* ---- checkout (templates/checkout.html) */
.checkout { max-width: 1000px; }
.checkout h1 { margin: 6px 0 16px; }
.back-link { font-size: .9rem; color: var(--muted); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 20px; }
.co-plan { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.co-plan h2 { margin: 2px 0 4px; font-size: 1.5rem; }
.co-plan p { margin: 0; }
.co-plan select { width: auto; }
.co-field { display: flex; flex-direction: column; gap: 8px; }
.co-field > span { font-size: .85rem; font-weight: 600; color: #aab1c3; }
.co-field input { font: inherit; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.co-field input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
#co-seats { max-width: 140px; }
.co-coupon { display: flex; gap: 8px; }
.co-coupon input { flex: 1; text-transform: uppercase; letter-spacing: .05em; }
.co-code-note { font-size: .83rem; min-height: 1em; }
.co-code-note.err { color: var(--err); } .co-code-note.ok { color: var(--ok); }
.co-methods { display: grid; gap: 10px; }
.co-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.co-method.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.co-method input { accent-color: var(--accent); }
.co-method > span:last-child { display: flex; flex-direction: column; }
.co-method small { font-size: .8rem; }
.co-method-ico { width: 38px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); color: #c3c9d8; flex: none; }
.co-method-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.co-method-ico.pp { font-weight: 800; font-style: italic; color: #fff; background: #0070e0; font-size: 1.05rem; }
.co-summary { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
.co-summary h3 { margin: 0; }
.co-lines { margin: 0; display: grid; gap: 8px; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; }
.co-lines dt { color: var(--muted); } .co-lines dd { margin: 0; font-weight: 600; }
.co-lines .co-total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; }
.co-lines .co-total dt { color: var(--text); font-weight: 700; }
.co-note { margin: 0; padding: 9px 12px; border-radius: 9px; background: var(--warn-bg); color: #fde6b0; }
.co-secure { margin: 0; }
.co-feats { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.co-feats .checks { margin: 6px 0 0; columns: 2; column-gap: 12px; }
.co-feats .checks li { padding: 3px 0 3px 22px; break-inside: avoid; }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } .co-summary { position: static; } .co-plan { flex-direction: column; } }

/* ---- after paying (templates/billing_result.html) */
.pay-result { text-align: center; padding: 40px 28px; }
.pay-result h1 { font-size: 1.8rem; }
.pay-result .lead { margin: 0 auto 18px; }
.pay-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.pay-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pay-ico.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pay-ico.wait { background: var(--accent-soft); color: var(--accent); }
.pay-ico.err { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
.pay-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 auto 18px; max-width: 520px; }
.pay-facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.pay-facts dt { font-size: .78rem; color: var(--muted); } .pay-facts dd { margin: 2px 0 0; font-weight: 700; }
.pay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---- account: plan & payments */
.plan-box { margin-bottom: 14px; }
.plan-now { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.plan-now h3 { font-size: 1.4rem; margin: 2px 0; }
.plan-now p { margin: 0; }
.plan-now-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-box > p { margin: 12px 0 0; }
.warn-text { color: #fbbf24 !important; }
.pay-table { margin-bottom: 36px; }
.pay-status { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(148, 163, 196, .14); }
.pay-status.paid { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pay-status.failed { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
.pay-status.pending { background: rgba(251, 191, 36, .14); color: #fbbf24; }
.co-field .period-switch { align-self: flex-start; }

/* ---- team page */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.feat .num { background: var(--grad); }
h2.mt { margin-top: 8px; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }

/* ---- fields: a soft blue-tinted well with a blue focus ring */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea, .co-field input {
  background-color: rgba(147, 197, 253, .045); border: 1px solid rgba(147, 197, 253, .12); border-radius: 12px; color: var(--text);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus, .co-field input:focus {
  outline: none; border-color: rgba(96, 165, 250, .85); background-color: rgba(147, 197, 253, .07); box-shadow: 0 0 0 4px rgba(59, 130, 246, .24);
}
input::placeholder, textarea::placeholder { color: rgba(219, 232, 255, .3); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* ---- menus in the header */
.lang-menu, .nav-menu { background: rgba(9, 13, 24, .96); border-color: rgba(147, 197, 253, .14); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .85); }
.lang-menu a:hover, .nav-menu-item:hover { background: rgba(59, 130, 246, .14); }
.nav-menu-head, .nav-menu-sep { border-color: rgba(147, 197, 253, .12); }

/* ---- sign in, create account, forgot password: the apps' sign-in screen (blue aurora, glass card) */
.auth { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 64px); align-content: center; gap: 20px; padding: 64px 16px 88px; }
.auth::before {
  content: ""; position: absolute; inset: -25% -15%; z-index: -2; pointer-events: none; filter: blur(60px);
  background:
    radial-gradient(32% 30% at 28% 26%, rgba(29, 78, 216, .62), transparent 70%),
    radial-gradient(28% 28% at 76% 34%, rgba(37, 99, 235, .4), transparent 70%),
    radial-gradient(34% 30% at 58% 86%, rgba(14, 116, 204, .36), transparent 70%);
  animation: auth-drift 24s ease-in-out infinite alternate;
}
.auth::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(147, 197, 253, .1) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 75%);
}
@keyframes auth-drift { to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
.auth-card {
  position: relative; max-width: 430px; gap: 16px; padding: 34px 32px 30px; border: 0; border-radius: 24px;
  background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3);
}
/* a hairline border that catches the light at the top and bottom */
.auth-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--glass-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.auth-card h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.auth-card h1 + p { margin-top: -8px; color: rgba(219, 232, 255, .64); font-size: .95rem; }
.auth-card label:not(.check) { gap: 8px; font-size: .86rem; color: rgba(219, 232, 255, .82); }
.auth-card label.check { gap: 10px; color: rgba(219, 232, 255, .82); font-size: .9rem; }
/* :where keeps this below the icon fields' padding-left (below) */
.auth-card input:where(:not([type=checkbox]):not([type=hidden])) { height: 48px; padding: 0 14px; font-size: .97rem; }
.auth-card .btn.primary { height: 50px; margin-top: 4px; border-radius: 14px; font-size: 1rem; }
.auth-card .row .btn { flex: 1; border-radius: 12px; }
.auth-card .oauth-btn { height: 48px; border-radius: 14px; }
.auth-card .recovery { border-radius: 12px; border-color: rgba(96, 165, 250, .5); background: rgba(147, 197, 253, .05); }
.auth-links { font-size: .9rem; } .auth-links a { font-weight: 600; }
/* icons inside the fields (grey; blue while typing) */
.auth-card :is(input[type=email], input[type=password], input[name=name], input[name=code], input[name=totp], input[name=recovery]) {
  padding-left: 44px; background-image: var(--ico); background-repeat: no-repeat; background-position: 15px 50%; background-size: 17px 17px;
}
.auth-card :is(input[type=email], input[type=password], input[name=name], input[name=code], input[name=totp], input[name=recovery]):focus { background-image: var(--ico-on); }
.auth-card input[type=email] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8bb0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); --ico-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.auth-card input[type=password] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8bb0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); --ico-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.auth-card input[name=name] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8bb0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.3-3.6 4.2-5.5 7.5-5.5s6.2 1.9 7.5 5.5'/%3E%3C/svg%3E"); --ico-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.3-3.6 4.2-5.5 7.5-5.5s6.2 1.9 7.5 5.5'/%3E%3C/svg%3E"); }
.auth-card input[name=code], .auth-card input[name=totp] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8bb0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); --ico-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.auth-card input[name=recovery] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8bb0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4'/%3E%3Cpath d='m10.5 12.5 9-9M16 7l2.5 2.5M18.5 4.5 21 7'/%3E%3C/svg%3E"); --ico-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4'/%3E%3Cpath d='m10.5 12.5 9-9M16 7l2.5 2.5M18.5 4.5 21 7'/%3E%3C/svg%3E"); }
/* inner pages (pricing, docs, account…): a soft blue light at the top */
main > .section:first-child { background: radial-gradient(ellipse 60% 440px at 50% 0, rgba(29, 78, 216, .24), transparent 70%) no-repeat, radial-gradient(ellipse 35% 300px at 85% 0, rgba(14, 116, 204, .14), transparent 70%) no-repeat; }
@media (max-width: 640px) {
  .auth { align-content: start; padding: 28px 14px 56px; min-height: 0; }
  .auth::before {
    inset: -120px -40% auto; height: 780px;
    background:
      radial-gradient(42% 34% at 26% 30%, rgba(29, 78, 216, .75), transparent 70%),
      radial-gradient(40% 30% at 84% 22%, rgba(37, 99, 235, .45), transparent 70%),
      radial-gradient(46% 32% at 55% 80%, rgba(14, 116, 204, .4), transparent 70%);
  }
  .auth-card { padding: 28px 20px 24px; border-radius: 22px; }
  .auth-card h1 { font-size: 1.6rem; }
  .auth-card input:not([type=checkbox]):not([type=hidden]) { height: 52px; font-size: 16px; }
  .auth-card .btn.primary { height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .auth::before { animation: none; } }
/* /auth/app: an app asking to be signed in */
.app-login .al-device { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(147, 197, 253, .18); background: rgba(147, 197, 253, .05); }
.app-login .al-device svg { width: 28px; height: 28px; fill: none; stroke: #93c5fd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app-login .al-device div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-login .al-device b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-login .al-code-box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(15, 23, 42, .6); border: 1px dashed rgba(147, 197, 253, .3); }
.app-login .al-code { font-size: 2rem; letter-spacing: .18em; color: #fff; font-variant-numeric: tabular-nums; }
.app-login .al-warn { padding: 10px 12px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde6b0; font-size: .88rem; }
.app-login .al-actions { display: flex; flex-direction: column; gap: 10px; }
.app-login .al-account { text-align: center; }
.app-login .al-account .link { background: none; border: 0; padding: 0; color: #93c5fd; font: inherit; cursor: pointer; }
.app-login .al-result { text-align: center; padding: 8px 0; }
.app-login .al-check { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #4ade80; background: rgba(74, 222, 128, .12); }
.app-login #al-signin, .app-login #al-confirm, .app-login .al-totp { display: grid; gap: 14px; }
.app-login [hidden] { display: none !important; }
