:root {
  color-scheme: dark;
  --auth-bg: #050505;
  --auth-panel: #101010;
  --auth-raised: #171717;
  --auth-line: #303030;
  --auth-line-strong: #595959;
  --auth-text: #f7f7f7;
  --auth-muted: #b8b8b8;
  --auth-subtle: #858585;
  --auth-red: #d10f2f;
  --auth-red-bright: #ef233c;
}

@font-face {
  font-family: "Sora";
  src: url("/assets/vendor/sora/sora-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; min-height: 100%; background: var(--auth-bg); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--auth-bg); color: var(--auth-text); font-family: "Sora", "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.suite-auth { position: relative; width: min(100% - 32px, 1260px); min-height: 100vh; margin-inline: auto; padding: 28px 0 48px; isolation: isolate; }
.suite-auth__mesh { position: fixed; z-index: -1; top: 50%; left: 18%; width: min(62vw, 760px); aspect-ratio: 1; transform: translate(-50%,-50%); pointer-events: none; opacity: .42; }
.suite-auth__mesh::before,
.suite-auth__mesh::after,
.suite-auth__mesh i { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: rotate(18deg); }
.suite-auth__mesh::after { inset: 22%; border-color: rgba(209,15,47,.52); border-radius: 0; transform: rotate(45deg); }
.suite-auth__mesh i:nth-child(1) { inset: 30%; border-color: rgba(255,255,255,.18); transform: rotateX(64deg); }
.suite-auth__mesh i:nth-child(2) { inset: 34%; border-color: rgba(209,15,47,.68); transform: rotateY(64deg); }
.suite-auth__mesh i:nth-child(3) { inset: 42%; border-color: rgba(255,255,255,.24); border-radius: 0; transform: rotate(45deg); }

.landing-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--auth-line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--auth-line); border-radius: 12px; background: var(--auth-panel); }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.brand-icon.image-loaded img { opacity: 1; }
.brand-icon.image-loaded .brand-fallback { display: none; }
.brand-fallback { color: var(--auth-text); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.brand-title { font-size: 1rem; font-weight: 760; letter-spacing: -.02em; }
.brand-sub { color: var(--auth-muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.header-switcher { display: inline-grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--auth-line); border-radius: 10px; background: var(--auth-panel); }
.header-switcher__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 8px; color: var(--auth-muted); font-size: .8rem; font-weight: 700; text-decoration: none; }
.header-switcher__link:hover { color: var(--auth-text); background: var(--auth-raised); }
.header-switcher__link[aria-current="page"] { background: var(--auth-red); color: #fff; box-shadow: 0 9px 22px rgba(209,15,47,.22); }

.suite-auth__grid { min-height: calc(100vh - 120px); display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,510px); align-items: center; gap: clamp(44px,8vw,110px); padding: 70px 0 36px; }
.suite-auth__intro { max-width: 650px; }
.hero-title { max-width: 12ch; margin: 0 0 22px; font-size: clamp(3rem,6vw,6.3rem); line-height: .92; letter-spacing: -.04em; text-wrap: balance; }
.hero-title::after { content: ""; display: block; width: 76px; height: 4px; margin-top: 24px; background: var(--auth-red); }
.hero-text { max-width: 62ch; margin: 0; color: var(--auth-muted); font-size: 1rem; }
.suite-auth__bot-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.suite-auth__bot-strip img { width: 54px; height: 54px; object-fit: contain; padding: 6px; border: 1px solid var(--auth-line); border-radius: 12px; background: var(--auth-panel); }
.suite-auth__assurance { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--auth-muted); font-size: .78rem; }
.suite-auth__assurance li { display: flex; align-items: center; gap: 9px; }
.suite-auth__assurance li::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--auth-red); transform: rotate(45deg); }

.suite-auth-card { position: relative; padding: 30px; border: 1px solid var(--auth-line); border-radius: 13px; background: var(--auth-panel); box-shadow: 0 24px 70px rgba(0,0,0,.46); }
.suite-auth-card::before { content: ""; position: absolute; top: -1px; right: 28px; left: 28px; height: 2px; background: var(--auth-red); }
.suite-auth-card h2 { margin: 0 0 8px; font-size: clamp(1.7rem,3vw,2.35rem); line-height: 1.08; letter-spacing: -.03em; }
.text-muted, .form-text { color: var(--auth-muted); }
.small, .form-text { font-size: .82rem; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.p-3 { padding: 1rem !important; }
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }
.gap-3 { gap: 1rem !important; }

.auth-form { display: grid; gap: 16px; }
.form-label { display: inline-block; margin-bottom: 7px; color: var(--auth-text); font-size: .78rem; font-weight: 700; }
.form-control { display: block; width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--auth-line); border-radius: 9px; outline: 0; background: #090909; color: var(--auth-text); }
.form-control:focus { border-color: var(--auth-red-bright); box-shadow: 0 0 0 3px rgba(209,15,47,.18); }
.form-control::placeholder { color: #747474; }
.auth-input { display: flex; align-items: center; min-height: 56px; padding: 0 10px; border: 1px solid var(--auth-line); border-radius: 9px; background: #090909; }
.auth-input:focus-within { border-color: var(--auth-red-bright); box-shadow: 0 0 0 3px rgba(209,15,47,.18); }
.auth-input__icon { width: 28px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--auth-muted); }
.auth-input__control { min-height: 54px; padding: 12px 8px; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.auth-input__toggle { min-width: 54px; min-height: 44px; border: 0; background: transparent; color: var(--auth-muted); font-size: .72rem; font-weight: 760; text-transform: uppercase; cursor: pointer; }
.auth-input__toggle:hover { color: var(--auth-text); }

.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; color: var(--auth-text); font-weight: 760; text-align: center; text-decoration: none; transition: background-color 180ms ease,border-color 180ms ease,color 180ms ease; }
.btn:disabled { cursor: wait; opacity: .52; }
.btn-primary { border-color: var(--auth-red); background: var(--auth-red); color: #fff; box-shadow: 0 14px 30px rgba(209,15,47,.2); }
.btn-primary:hover { border-color: var(--auth-red-bright); background: var(--auth-red-bright); }
.btn-outline-light, .btn-ghost { border-color: var(--auth-line); background: #090909; color: var(--auth-muted); }
.btn-outline-light:hover, .btn-ghost:hover { border-color: var(--auth-text); background: var(--auth-text); color: #050505; }
.auth-inline-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--auth-muted); font-size: .82rem; font-weight: 650; text-underline-offset: 3px; }
.auth-inline-link:hover { color: var(--auth-text); }

.alert { margin-bottom: 16px; padding: 13px 14px; border: 1px solid; border-radius: 9px; font-size: .82rem; }
.alert-danger { border-color: var(--auth-red); background: #28070d; color: #fff; }
.alert-success { border-color: var(--auth-line-strong); background: var(--auth-raised); color: #fff; }
.alert-info, .alert-warning { border-color: var(--auth-line); background: var(--auth-raised); color: var(--auth-text); }
.auth-qr-panel { display: grid; place-items: center; width: 100%; padding: 6px; }
.auth-qr-image { width: min(100%,260px); height: auto; border: 1px solid var(--auth-line); border-radius: 10px; background: #fff; }
.auth-setup-meta { display: grid; gap: 6px; }
.auth-setup-meta__label { font-weight: 650; }
.auth-setup-key { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--auth-line); border-radius: 9px; background: #090909; color: var(--auth-text); overflow-wrap: anywhere; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--auth-text); outline-offset: 3px; }

@media (max-width: 900px) {
  .suite-auth__grid { grid-template-columns: 1fr; gap: 38px; padding-top: 50px; }
  .suite-auth__intro { max-width: 760px; }
  .hero-title { max-width: 15ch; font-size: clamp(2.8rem,9vw,5rem); }
  .suite-auth__mesh { top: 28%; left: 50%; width: min(100vw,650px); opacity: .25; }
}

@media (max-width: 576px) {
  .suite-auth { width: min(100% - 24px,1260px); padding-top: 12px; }
  .landing-header { align-items: flex-start; flex-direction: column; }
  .header-switcher { width: 100%; }
  .suite-auth__grid { padding-top: 42px; }
  .hero-title { font-size: clamp(2.65rem,14vw,4rem); }
  .suite-auth-card { padding: 24px 18px; }
  .suite-auth__bot-strip img { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
