/* Sign-in, free trial and sign-up screen (25 Nov 2026): the design Ali's son made for the website, in the web app
   and the phone apps. Everything is scoped to .auth-screen, so nothing here changes the rest of the app.
   Solid colours only (Ali, 25 Nov 2026: no gradients). The theme follows the app's own choice, else the website's. */

@font-face {
    font-family: 'AuthInter'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(/marketing/assets/fonts/inter-latin.woff2) format('woff2');
}

.auth-screen {
    --bg: #0a0b0d; --bg-2: #0f1114; --surface: #14171b; --surface-2: #1b1f24;
    --ink: 255, 255, 255;
    --border: rgba(var(--ink), .08); --border-strong: rgba(var(--ink), .14);
    --text: #ededef; --text-2: #a1a1aa; --text-3: #8b8b94; --text-strong: #ffffff;
    --accent: #5b4cf0; --accent-strong: #4838db; --accent-on-dark: #a5b4fc; --accent-soft: rgba(91, 76, 240, .16);
    --emerald-text: #6ee7b7; --emerald-soft: rgba(16, 185, 129, .14);
    --danger-text: #fca5a5; --danger-soft: rgba(239, 68, 68, .14); --danger-border: rgba(248, 113, 113, .38);
    --info-text: #93c5fd; --info-soft: rgba(59, 130, 246, .14); --info-border: rgba(96, 165, 250, .38);
    --warn-text: #fcd34d; --warn-soft: rgba(245, 158, 11, .14); --warn-border: rgba(251, 191, 36, .38);
    --link-hover: #c7d2fe;
    --btn-bg: #fafafa; --btn-bg-hover: #ffffff; --btn-fg: #0a0b0d;
    --font: 'AuthInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color-scheme: dark;

    position: fixed; inset: 0; z-index: 50;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.auth-screen[data-auth-theme="light"], .auth-screen[data-auth-theme="warm"] {
    color-scheme: light;
    --ink: 23, 23, 26;
    --bg: #f6f6f3; --bg-2: #ededea; --surface: #ffffff; --surface-2: #f4f4f1;
    --border: #dcdcd6; --border-strong: #c8c8c1;
    --text: #17171a; --text-2: #52525b; --text-3: #63636b; --text-strong: #000000;
    --accent-on-dark: #4338ca; --accent-soft: rgba(67, 56, 202, .12); --link-hover: #312e81;
    --emerald-text: #047857; --emerald-soft: rgba(16, 185, 129, .12);
    --danger-text: #b91c1c; --danger-soft: rgba(239, 68, 68, .08); --danger-border: rgba(220, 38, 38, .30);
    --info-text: #1d4ed8; --info-soft: rgba(59, 130, 246, .08); --info-border: rgba(37, 99, 235, .28);
    --warn-text: #92400e; --warn-soft: rgba(245, 158, 11, .10); --warn-border: rgba(217, 119, 6, .32);
    --btn-bg: #17171a; --btn-bg-hover: #000000; --btn-fg: #ffffff;
}
.auth-screen[data-auth-theme="warm"] {
    --ink: 42, 36, 28;
    --bg: #f4efe6; --bg-2: #ebe3d5; --surface: #fdfaf4; --surface-2: #f1ebdf;
    --border: #dbd0bd; --border-strong: #cbbea7;
    --text: #2a241c; --text-2: #5f5546; --text-3: #6f6555; --text-strong: #17130d;
    --btn-bg: #2a241c; --btn-bg-hover: #17130d; --btn-fg: #fbf8f2;
}

.auth-screen *, .auth-screen *::before, .auth-screen *::after { box-sizing: border-box; }
.auth-screen a { color: var(--accent-on-dark); text-decoration: none; }
.auth-screen a:hover { color: var(--link-hover); }
.auth-screen [hidden] { display: none !important; }
.auth-screen :focus-visible { outline: 2px solid var(--accent-on-dark) !important; outline-offset: 3px; border-radius: 6px; }

/* Backdrop: dot matrix and the flight arc of the website, in solid colours */
.auth-dots {
    position: fixed; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(var(--ink), .07) 1px, transparent 1.3px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 24%, #000 30%, transparent 90%);
            mask-image: radial-gradient(ellipse 78% 62% at 50% 24%, #000 30%, transparent 90%);
}
.auth-sky { position: fixed; inset: 0 0 auto; height: 640px; pointer-events: none; overflow: hidden; }
.auth-sky svg { width: 100%; height: 100%; display: block; }
.auth-sky .auth-arc { stroke: #38bdf8; stroke-opacity: .5; }
.auth-sky .auth-plane path { fill: #ffffff; }
.auth-screen[data-auth-theme="light"] .auth-sky .auth-plane path,
.auth-screen[data-auth-theme="warm"] .auth-sky .auth-plane path { fill: var(--accent); }
@media (prefers-reduced-motion: reduce) { .auth-sky .auth-plane { display: none; } }
@media (max-width: 760px) { .auth-sky { opacity: .45; } }

.auth-page {
    position: relative; min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(36px + env(safe-area-inset-bottom, 0px));
}
.auth-card {
    position: relative; z-index: 2; width: 100%; max-width: 446px;
    border-radius: 24px; border: 1px solid var(--border-strong); background: var(--surface);
    box-shadow: 0 36px 100px -32px rgba(0, 0, 0, .72), 0 0 0 1px rgba(var(--ink), .03);
    overflow: hidden;
}
.auth-screen[data-auth-theme="light"] .auth-card,
.auth-screen[data-auth-theme="warm"] .auth-card { box-shadow: 0 28px 80px -28px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06); }

.auth-head { position: relative; text-align: center; padding: 34px 30px 22px; }
.auth-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(var(--ink), .03); color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.auth-close:hover { background: rgba(var(--ink), .08); color: var(--text); border-color: var(--border-strong); }
.auth-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-mark { width: 56px; height: 56px; margin: 0 auto 16px; display: block; border-radius: 14px; box-shadow: 0 14px 32px -10px rgba(91, 76, 240, .55); }
.auth-head h1 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; color: var(--text); }
.auth-sub { margin: 6px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }

.auth-tabs-wrap { padding: 0 28px 20px; }
.auth-tabs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--border);
}
.auth-tab {
    height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2);
    font: 500 13.5px/1 var(--font); cursor: pointer; padding: 0;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 0 0 1px var(--border-strong); }
.auth-screen[data-auth-theme="light"] .auth-tab.active,
.auth-screen[data-auth-theme="warm"] .auth-tab.active { background: #ffffff; box-shadow: 0 1px 3px rgba(15, 23, 42, .08), inset 0 0 0 1px var(--border); }

.auth-body { padding: 4px 28px 28px; }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: authFade .18s ease; }
@keyframes authFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.auth-field { margin-bottom: 14px; }
.auth-field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.auth-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.auth-field-row label { margin-bottom: 0; }
.auth-link-sm { font: 500 12.5px/1.2 var(--font); color: var(--accent-on-dark); background: none; border: 0; padding: 0; cursor: pointer; }
.auth-link-sm:hover { text-decoration: underline; }
.auth-input-wrap { position: relative; }
/* !important on the input colours: the app's dark and soft themes force every input's colours with !important */
.auth-screen .auth-input {
    width: 100%; height: 44px; padding: 0 14px; margin: 0;
    border-radius: 10px; border: 1px solid var(--border-strong) !important;
    background: var(--bg) !important; color: var(--text) !important;
    font: 400 15px/1 var(--font); -webkit-appearance: none; appearance: none;
}
.auth-screen .auth-input::placeholder { color: var(--text-3) !important; opacity: 1; }
.auth-screen .auth-input:focus { outline: none; border-color: var(--accent-on-dark) !important; box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-screen .auth-input-pw { padding-right: 46px; }
.auth-pw-btn {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 8px; padding: 0;
    background: transparent; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.auth-hint { margin: 6px 2px 0; font-size: 12px; line-height: 1.4; color: var(--text-3); }
.auth-pw-btn:hover { color: var(--text); background: rgba(var(--ink), .05); }
.auth-pw-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-perks {
    margin: 2px 0 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2);
    display: grid; gap: 7px; font-size: 13px; color: var(--text-2);
}
.auth-perks div { display: flex; align-items: center; gap: 8px; }
.auth-perks svg { width: 15px; height: 15px; color: var(--emerald-text); flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.auth-plan-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 15px; border-radius: 12px; margin-bottom: 16px;
    border: 1px solid rgba(165, 180, 252, .38); background: rgba(91, 76, 240, .14);
}
.auth-plan-chip b { display: block; font-size: 14px; color: var(--text); }
.auth-plan-chip span { font-size: 12.5px; color: var(--text-2); }
.auth-plan-price { text-align: right; flex: none; }
.auth-plan-price strong { display: block; font-size: 18px; font-weight: 650; color: var(--text); letter-spacing: -.02em; }
.auth-plan-price small { font-size: 11.5px; color: var(--text-3); }

.auth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 46px; margin-top: 6px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
    font: 500 15px/1 var(--font); cursor: pointer; white-space: nowrap;
}
.auth-btn:active { transform: translateY(1px); }
.auth-btn[disabled] { opacity: .65; cursor: default; transform: none; }
.auth-btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.auth-btn-primary:hover { background: var(--btn-bg-hover); box-shadow: 0 0 0 4px rgba(var(--ink), .09); }
.auth-btn-accent { background: var(--accent); color: #ffffff; }
.auth-btn-accent:hover { background: var(--accent-strong); box-shadow: 0 0 0 4px rgba(37, 99, 235, .24); }
.auth-btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.auth-btn-outline:hover { background: rgba(var(--ink), .05); }
.auth-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.auth-msg { margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.auth-msg button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; font-weight: 600; cursor: pointer; }
.auth-msg-ok { border-color: rgba(52, 211, 153, .35); background: var(--emerald-soft); color: var(--emerald-text); }
.auth-msg-error { border-color: var(--danger-border); background: var(--danger-soft); color: var(--danger-text); }
.auth-msg-info { border-color: var(--info-border); background: var(--info-soft); color: var(--info-text); }
.auth-msg-warn { border-color: var(--warn-border); background: var(--warn-soft); color: var(--warn-text); }
.auth-after { margin-top: 14px; margin-bottom: 0; }

.auth-back { text-align: center; margin-top: 14px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 12px; color: var(--text-3); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-mobile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-store-mini {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2);
    color: var(--text-2) !important; font-size: 12.5px; font-weight: 500;
}
.auth-store-mini:hover { border-color: var(--border-strong); color: var(--text) !important; background: var(--surface-2); }
.auth-store-mini svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

.auth-sent { text-align: center; padding: 4px 0 2px; }
.auth-sent-icon {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    background: var(--emerald-soft); color: var(--emerald-text);
}
.auth-sent-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.auth-sent h2 { margin: 0 0 6px; font-size: 18px; font-weight: 650; color: var(--text); letter-spacing: -0.02em; }
.auth-sent p { margin: 0 0 4px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.auth-sent strong { color: var(--text); word-break: break-all; }

.auth-foot { position: relative; z-index: 2; margin: 20px 0 0; text-align: center; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.auth-foot a, .auth-foot button { color: var(--text-2); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.auth-foot a:hover, .auth-foot button:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 480px) {
    .auth-head { padding: 30px 22px 18px; }
    .auth-tabs-wrap { padding: 0 20px 18px; }
    .auth-body { padding: 4px 20px 24px; }
}
