/* Login and sign up. Same look as the About and Compiler pages: Plus Jakarta Sans, cyan to blue accent, rings around the logo. */
.au {
    --au-a: #0891b2; --au-b: #2563eb; --au-glow: 8, 145, 178;
    --au-ink: #0f1b2d; --au-body: #46566b; --au-muted: #64748b;
    --au-bg: #ffffff; --au-surface: #f4f9fb; --au-card: #ffffff;
    --au-line: rgba(20, 90, 140, .18); --au-soft: rgba(8, 145, 178, .09); --au-err: #b91c1c;
    min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--au-body); background: var(--au-bg);
    -webkit-font-smoothing: antialiased;
}
[data-bs-theme="dark"] .au {
    --au-a: #22d3ee; --au-b: #3b82f6; --au-glow: 34, 211, 238;
    --au-ink: #eef7ff; --au-body: #b4c6d9; --au-muted: #8aa0b8;
    --au-bg: #020817; --au-surface: #060f20; --au-card: #0a1628;
    --au-line: rgba(110, 190, 230, .22); --au-soft: rgba(34, 211, 238, .10); --au-err: #f87171;
}
.au { color-scheme: light; }
[data-bs-theme="dark"] .au { color-scheme: dark; }
/* the page behind the form follows the theme too (the variables above live on .au, not on body) */
body:has(.au) { background: #ffffff; overflow: auto; padding-top: 0 !important; }
[data-bs-theme="dark"] body:has(.au), [data-bs-theme="dark"] html:has(.au) { background: #020817; }
/* browser autofill paints a pale fill; keep the field on theme */
.au input:-webkit-autofill, .au input:-webkit-autofill:focus { -webkit-text-fill-color: var(--au-ink); caret-color: var(--au-ink); -webkit-box-shadow: 0 0 0 1000px var(--au-card) inset; transition: background-color 9999s; }
.au *, .au *::before, .au *::after { box-sizing: border-box; }
.au a { text-decoration: none; color: var(--au-a); font-weight: 700; }
.au a:hover { text-decoration: underline; text-underline-offset: 3px; }
.au :focus-visible { outline: 2px solid var(--au-a); outline-offset: 3px; }

/* ---------- brand side ---------- */
.au-side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); overflow: hidden; background: radial-gradient(120% 80% at 0% 0%, rgba(var(--au-glow), .14), transparent 60%), var(--au-surface); border-right: 1px solid var(--au-line); }
.au-brand { position: absolute; top: clamp(20px, 3vw, 36px); left: clamp(28px, 4vw, 56px); }
.au-brand img { width: auto; height: 34px; }
.au-mark { position: relative; display: grid; place-items: center; width: min(46%, 210px); aspect-ratio: 1; margin: 28px 0 4px 6px; }
.au-mark img { position: relative; width: 56%; height: auto; filter: drop-shadow(0 18px 24px rgba(8, 145, 178, .35)); }
.au-orb { position: absolute; inset: -10%; }
.au-orb::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--au-glow), .3), transparent 75%); filter: blur(12px); }
.au-orb i { position: absolute; border-radius: 50%; border: 1px solid var(--au-line); }
.au-orb i:nth-child(1) { inset: 8%; border-color: transparent; border-top-color: var(--au-a); border-right-color: color-mix(in srgb, #2563eb 50%, transparent); }
.au-orb i:nth-child(2) { inset: 0; border-style: dashed; opacity: .6; }
.au-orb i:nth-child(3) { inset: 20%; border-color: rgba(var(--au-glow), .28); }
.au-orb i:nth-child(3)::after { content: ""; position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--au-a); box-shadow: 0 0 14px 2px rgba(var(--au-glow), .7); }
.au-head { margin: 0; max-width: 18ch; font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--au-ink); text-wrap: balance; }
.au-lead { margin: 0; max-width: 40ch; font-size: 1rem; line-height: 1.6; }
.au-perks { display: grid; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.au-perks li { display: flex; align-items: center; gap: 14px; }
.au-perk__ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--au-soft); color: var(--au-a); font-size: 1.1rem; }
.au-perks b { display: block; font-size: .95rem; color: var(--au-ink); }
.au-perks small { display: block; font-size: .8125rem; color: var(--au-muted); }
.au-stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.au-stack li { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--au-line); border-radius: 12px; background: var(--au-card); }

/* ---------- form side ---------- */
.au-main { display: flex; flex-direction: column; min-height: 100dvh; padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 56px); }
.au-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(16px, 4vh, 40px); }
.au-top .au-brand { position: static; display: none; }
.au-top > span { margin-left: auto; font-size: .9rem; }
.au-card { width: min(100%, 460px); margin: auto; }
.au-card--wide { width: min(100%, 540px); }
.au-card h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.03em; color: var(--au-ink); }
.au-sub { margin: 0 0 24px; font-size: .975rem; }
.au-msg { display: block; margin-bottom: 12px; color: var(--au-err); font-size: .9rem; font-weight: 600; }
.au-msg:empty { display: none; }

.au-field { position: relative; margin-bottom: 16px; }
.au-field label:not(.error) { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 700; color: var(--au-ink); }
.au-ctrl { position: relative; display: flex; align-items: center; }
.au-ctrl > i { position: absolute; left: 14px; color: var(--au-muted); font-size: 1rem; pointer-events: none; }
.au .au-ctrl .form-control, .au .au-ctrl .form-select, .au .au-plain { width: 100%; min-height: 50px; padding: 0 14px 0 42px; border: 1px solid var(--au-line); border-radius: 14px; background-color: var(--au-card); color: var(--au-ink); font: inherit; font-size: .95rem; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.au .au-ctrl .form-control::placeholder { color: var(--au-muted); opacity: .85; }
.au .au-ctrl .form-control:focus, .au .au-ctrl .form-select:focus { border-color: var(--au-a); box-shadow: 0 0 0 4px rgba(var(--au-glow), .18); outline: none; }
.au .au-ctrl--eye .form-control { padding-right: 46px; }
.au-eye { position: absolute; right: 6px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--au-muted); cursor: pointer; }
.au-eye:hover { color: var(--au-a); background: var(--au-soft); }
.au-badge { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px; background: var(--au-soft); color: var(--au-a); font-size: 1.5rem; box-shadow: inset 0 0 0 1px var(--au-line); }
.au-badge--warn { background: rgba(217, 119, 6, .12); color: #b45309; }
[data-bs-theme="dark"] .au-badge--warn { color: #fbbf24; }
.au a.au-btn { color: #fff; text-decoration: none; }
.au .au-ctrl .form-control.error, .au .au-ctrl .form-control.input-validation-error { border-color: var(--au-err); }
.au label.error, .au .field-validation-error, .au span.text-danger { display: block; margin-top: 6px; color: var(--au-err) !important; font-size: .8125rem; font-weight: 600; }
.au-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.au-phone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; }
.au .au-phone .form-select { padding-left: 14px; border-radius: 14px !important; }
.au-phone .au-field label.error { grid-column: 1 / -1; }
.au-aside { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: .875rem; }

.au .au-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #0e7490, #2563eb); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 28px -16px rgba(8, 145, 178, .9); transition: transform .2s cubic-bezier(.2, .7, .2, 1), filter .2s, box-shadow .2s; }
.au .au-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.au .au-btn:active { transform: translateY(1px) scale(.99); }
.au .au-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.au-fine { margin: 18px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--au-muted); }
.au-foot { margin-top: auto; padding-top: 28px; font-size: .8125rem; color: var(--au-muted); text-align: center; }

/* the shared Google and Facebook buttons, restyled for this page */
.au .or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--au-muted); font-size: .8125rem; font-weight: 700; }
.au .or .bar { flex: 1; height: 1px; border: 0; background: var(--au-line); opacity: 1; margin: 0; }
.au .or span { padding: 0; }
.au .row.mt-2 { margin: 0; }
.au .row > [class*="col-"] { padding: 0 6px; }
.au .row > .col-md-6.col-12 { flex: 0 0 50%; max-width: 50%; margin-bottom: 0 !important; }
.au .btn-facebook, .au .btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 12px; border: 1px solid var(--au-line) !important; border-radius: 14px; background: var(--au-card) !important; color: var(--au-ink) !important; font-size: .9rem; font-weight: 700; transition: transform .2s, border-color .2s, box-shadow .2s; }
.au .btn-facebook::before { content: "\F344"; font-family: "bootstrap-icons"; color: #1877f2; font-size: 1.1rem; }
.au .btn-google .social-icon { float: none; flex: none; }
.au .btn-google .social-icon path { fill: #4285f4; }
.au .btn-facebook:hover, .au .btn-google:hover { transform: translateY(-2px); border-color: rgba(var(--au-glow), .55) !important; box-shadow: 0 14px 24px -16px rgba(var(--au-glow), .8); }

/* ---------- small screens ---------- */
@media (max-width: 991.98px) {
    .au { grid-template-columns: minmax(0, 1fr); }
    .au-side { display: none; }
    .au-top .au-brand { display: block; }
    .au-card, .au-card--wide { margin: 8px auto auto; }
}
@media (max-width: 575.98px) {
    /* names and the phone number stay side by side; only the two password fields stack */
    .au-row--stack { grid-template-columns: minmax(0, 1fr); }
    .au-row { gap: 0 10px; }
    .au-phone { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; }
    .au-main { min-height: 100dvh; padding: 14px 16px 12px; }
    .au-top { margin-bottom: 12px; }
    .au-card h1 { font-size: 1.5rem; }
    .au-badge { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; font-size: 1.2rem; }
    .au-sub { margin-bottom: 14px; font-size: .9rem; }
    .au-field { margin-bottom: 10px; }
    .au-field label:not(.error) { margin-bottom: 4px; font-size: .78rem; }
    .au .au-ctrl .form-control, .au .au-ctrl .form-select, .au .au-plain { min-height: 44px; padding-left: 38px; font-size: .9rem; }
    .au .au-phone .form-select { padding-left: 10px; }
    .au-ctrl > i { left: 12px; }
    .au-aside { margin: -2px 0 12px; }
    .au .au-btn { min-height: 48px; }
    /* Google and Facebook share one row */
    .au .or { margin: 14px 0 10px; }
    .au .btn-facebook, .au .btn-google { height: 44px; padding: 0 6px; gap: 6px; font-size: .8rem; white-space: nowrap; }
    .au .btn-google .social-icon { width: 16px; height: 16px; }
    .au .row > [class*="col-"] { padding: 0 4px; margin-bottom: 0 !important; }
    .au .row:has(> [class*="col-"]) { margin-inline: -4px; }
    .au-fine { margin-top: 12px; }
    .au-foot { padding-top: 14px; }
}
/* Google's floating badge covers the page, so it is hidden and the notice sits in the footer instead */
.grecaptcha-badge { display: none !important; }
.au-foot small { display: block; margin-top: 6px; font-size: .72rem; line-height: 1.5; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
    .au-orb i:nth-child(1) { animation: au-spin 26s linear infinite; }
    .au-orb i:nth-child(2) { animation: au-spin 70s linear infinite reverse; }
    .au-orb i:nth-child(3) { animation: au-spin 18s linear infinite; }
    .au-orb::before { animation: au-breathe 8s ease-in-out infinite; }
    .au-card { animation: au-in .6s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes au-spin { to { transform: rotate(360deg); } }
@keyframes au-breathe { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes au-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .au .au-btn, .au .btn-google, .au .btn-facebook { transition: none; } }
