/* Sora — ExtraBold for main headline only; regular for body */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;800&display=swap");

@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *,
    :before,
    :after,
    ::backdrop {
      --tw-outline-style: solid;
    }
  }
}

@layer theme {
  :root,
  :host {
    --font-sans: "Sora", sans-serif;
    --font-display: "Sora", sans-serif;
    --color-white: #fff;
    --radius-lg: 1rem;
    --default-transition-duration: 0.2s;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-font-weight: 400;
  }
}

@layer base {
  *,
  :after,
  :before,
  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html,
  :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family);
    font-weight: var(--default-font-weight);
    -webkit-tap-highlight-color: transparent;
  }

  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align: middle;
    display: block;
  }

  button,
  input,
  select,
  optgroup,
  textarea {
    font: inherit;
    color: inherit;
    opacity: 1;
    background-color: transparent;
    border-radius: 0;
  }

  button,
  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .hidden {
    display: none;
  }

  .w-full {
    width: 100%;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .bg-brand {
    background: linear-gradient(135deg, #1d6ef5 0%, #0b4fd6 55%, #083ea8 100%);
  }

  .text-white {
    color: var(--color-white);
  }

  .transition {
    transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: var(--default-transition-timing-function);
    transition-duration: var(--default-transition-duration);
  }

  @media (hover: hover) {
    .hover\:bg-indigo-800:hover {
      background: linear-gradient(135deg, #2a7bff 0%, #1458e8 55%, #0b49c4 100%);
    }
  }

  .focus-visible\:outline:focus-visible {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .focus-visible\:outline-2:focus-visible {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }

  .focus-visible\:outline-offset-4:focus-visible {
    outline-offset: 4px;
  }

  .focus-visible\:outline-brand:focus-visible {
    outline-color: #5aa0ff;
  }
}

:root {
  color-scheme: dark;
  --bg-deep: #05070d;
  --bg-mid: #0a1220;
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.42);
  --text: #f4f7ff;
  --text-soft: rgba(220, 230, 255, 0.72);
  --text-mute: rgba(180, 198, 230, 0.58);
  --accent: #4d8dff;
  --accent-deep: #1a5de8;
  --shadow-glass: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --radius-xl: 28px;
  --radius-md: 16px;
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans);
  font-weight: 400;
  background:
    radial-gradient(1000px 700px at 12% -8%, rgba(64, 140, 255, 0.34), transparent 58%),
    radial-gradient(900px 640px at 88% 108%, rgba(20, 90, 220, 0.28), transparent 55%),
    radial-gradient(700px 480px at 70% 18%, rgba(120, 170, 255, 0.12), transparent 60%),
    linear-gradient(165deg, #05070d 0%, #0a1220 48%, #071018 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

body::before {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  left: -8%;
  top: 18%;
  background: radial-gradient(circle, rgba(90, 160, 255, 0.45), rgba(90, 160, 255, 0) 70%);
  animation: orb-drift-a 18s ease-in-out infinite;
}

body::after {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  right: -10%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(40, 110, 255, 0.38), rgba(40, 110, 255, 0) 70%);
  animation: orb-drift-b 22s ease-in-out infinite;
}

@keyframes orb-drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -36px, 0) scale(1.08);
  }
}

@keyframes orb-drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-48px, 28px, 0) scale(1.12);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheen {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

a {
  color: #9ec2ff;
  text-decoration: none;
}

a:hover {
  color: #c7dcff;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(120, 180, 255, 0.85);
  outline-offset: 3px;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 100vh;
  min-height: 100dvh;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(20px, 3.5vw, 40px) clamp(20px, 4vw, 56px);
  box-sizing: border-box;
}

/* Left: open text column — no glass / gradient box */
.brand-panel {
  position: relative;
  z-index: 1;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(8px, 1.5vw, 20px) 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
  height: auto;
  max-height: none;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-panel::before,
.brand-panel::after {
  content: none;
  display: none;
}

/* Right column wrapper — no clip / no backdrop on this shell */
.form-panel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: start;
  width: 100%;
  height: auto;
  max-height: none !important;
  min-height: 0;
  overflow: visible !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.form-panel::before,
.form-panel::after {
  content: none;
  display: none;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: min(320px, 48vw);
  min-height: 72px;
  color: transparent;
  text-decoration: none;
  background: url("/bluedex-logo.png?v=2026100502") left center / contain no-repeat;
}

.brand-logo:hover {
  text-decoration: none;
  color: transparent;
  filter: brightness(1.05);
}

/* Keep original text/SVG for accessibility, hide visually */
.brand-logo svg,
.brand-logo > span,
.brand-logo .brand-badge,
.brand-logo .logo-ai {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mobile-brand {
  color: transparent !important;
  width: min(240px, 70vw);
  min-height: 56px;
  margin-bottom: 28px;
  display: none;
  background: url("/bluedex-logo.png?v=2026100502") left center / contain no-repeat;
}

.brand-intro {
  position: relative;
  z-index: 1;
  margin-top: 56px;
}

.brand-intro h1 {
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  font: 800 clamp(2.1rem, 3.4vw, 3.1rem) / 1.12 var(--font-display);
  background: linear-gradient(180deg, #ffffff 10%, #c7d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-intro p {
  color: var(--text-soft);
  max-width: 30rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
}

.brand-note {
  color: var(--text-mute);
  margin-top: 20px;
  font-size: 0.95rem;
}

.feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 28px;
}

.feature-card {
  display: flex;
  gap: 14px;
  min-height: auto;
  padding: 10px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  backdrop-filter: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feature-list .feature-card:last-child {
  border-bottom: 0;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateX(4px);
    opacity: 0.95;
  }
}

.feature-card svg {
  color: #9ec2ff;
  flex-shrink: 0;
  width: 20px;
  height: 22px;
  margin-top: 2px;
}

.feature-card h2 {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.feature-card p {
  color: var(--text-mute);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.brand-panel footer {
  position: relative;
  z-index: 1;
  color: var(--text-mute);
  border-top: 0;
  margin-top: 36px;
  padding-top: 0;
  font-size: 0.85rem;
}

/* Glass card lives on the inner wrap so content can never be clipped */
.form-wrap {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(420px, 100%);
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 28px 26px 26px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.02)),
    var(--glass);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

.form-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  opacity: 0.28;
  animation: sheen 7.5s ease-in-out infinite;
}

.form-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.form-wrap > * {
  position: relative;
  z-index: 1;
}

.register-wrap {
  margin-top: 0;
}

.form-wrap header h2 {
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  font: 400 clamp(1.7rem, 2.6vw, 2.1rem) / 1.15 var(--font-display);
  color: var(--text);
}

.form-wrap header p {
  color: var(--text-soft);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.social-list {
  gap: 8px;
  margin-top: 18px;
  display: grid;
}

/* Hide unavailable Apple row — it was the first clipped control */
.social-button[title*="Apple"] {
  display: none;
}

.social-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 44px;
  font-size: 0.92rem;
  font-weight: 400;
  display: flex;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .social-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
    transform: translateY(-1px);
  }
}

.social-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.social-button svg {
  width: 20px;
  height: 20px;
}

.social-button.google {
  border-color: rgba(158, 194, 255, 0.35);
}

.social-button.phone {
  border-color: rgba(120, 200, 160, 0.35);
  color: var(--text);
}

.social-button.phone svg {
  color: #7ddea8;
}

.social-button.facebook {
  border-color: rgba(100, 149, 237, 0.4);
}

.social-button.facebook svg {
  color: #6ea8ff;
}

.divider {
  color: var(--text-mute);
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
}

.divider:before,
.divider:after {
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  flex: 1;
  height: 1px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  color: var(--text-soft);
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 400;
  display: block;
}

.label-row {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.label-row a {
  font-size: 0.86rem;
  color: #9ec2ff;
}

.field input,
.field select {
  color: var(--text);
  background: rgba(8, 14, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  outline: none;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(170, 190, 220, 0.45);
  font-size: 0.92rem;
}

.field input:focus,
.field select:focus,
.phone-input:focus-within {
  border-color: rgba(110, 170, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(60, 130, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(10, 18, 36, 0.62);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 48px;
}

.password-toggle {
  color: var(--text-mute);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: flex;
  position: absolute;
  top: 6px;
  right: 6px;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.checkbox-row {
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-soft);
  display: flex;
}

.checkbox-row input {
  accent-color: var(--accent);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.remember-row {
  margin-top: 2px;
  margin-bottom: 14px;
}

.primary-button {
  color: #fff !important;
  cursor: pointer;
  background: linear-gradient(135deg, #2f7dff 0%, #1556e4 52%, #0d45c0 100%) !important;
  border: 1px solid rgba(180, 210, 255, 0.35);
  border-radius: 14px !important;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  box-shadow:
    0 12px 30px rgba(20, 80, 220, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

@media (hover: hover) {
  .primary-button:hover {
    text-decoration: none;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow:
      0 16px 36px rgba(20, 80, 220, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.secondary-divider {
  margin: 14px 0;
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.legal-note {
  text-align: center;
  color: var(--text-mute);
  margin: 16px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.legal-note a {
  color: #9ec2ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.workspace-note {
  display: none !important;
}

.phone-input {
  background: rgba(8, 14, 28, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  height: 48px;
  display: flex;
  overflow: hidden;
}

.phone-input #dial-code,
.phone-input .dial-code {
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  padding: 0 12px;
  display: inline-flex;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
  font-weight: 400;
  font-variant-emoji: normal;
  box-shadow: none;
}

.phone-input #dial-code .dial-flag,
.dial-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
  background: transparent;
}

.phone-input #dial-code .dial-text {
  font-weight: 400;
  letter-spacing: normal;
  background: none;
  box-shadow: none;
  padding: 0;
  border: 0;
  color: inherit;
}

/* Native select kept for form value; custom picker is the UI */
select#country.country-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.country-picker {
  position: relative;
  width: 100%;
}

.country-picker-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 28, 0.45);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.country-picker-trigger:focus-visible {
  outline: 2px solid rgba(110, 168, 255, 0.65);
  outline-offset: 2px;
}

.country-picker-trigger .dial-flag {
  width: 22px;
  height: 16px;
}

.country-picker-trigger .country-picker-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.country-picker-trigger .country-picker-chevron {
  color: var(--text-mute);
  font-size: 0.75rem;
  line-height: 1;
}

.country-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(320px, 50vh);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 16, 30, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
}

.country-picker-menu[hidden] {
  display: none !important;
}

.country-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.country-picker-option:hover,
.country-picker-option[aria-selected="true"] {
  background: rgba(80, 140, 255, 0.18);
}

.country-picker-option .dial-flag {
  width: 22px;
  height: 16px;
}

.country-picker-option .country-picker-name {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  font-variation-settings: normal;
}

.country-picker-option .country-picker-dial {
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: normal;
  background: none;
  box-shadow: none;
}

.phone-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent;
}

.field-help {
  color: var(--text-mute);
  margin: 7px 0 0;
  font-size: 0.8rem;
}

.terms-row {
  margin: 18px 0 22px;
}

.bottom-link {
  text-align: center;
  color: var(--text-soft);
  margin: 22px 0 0;
  font-size: 0.95rem;
}

.alert {
  border-radius: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.error {
  color: #ffc4c4;
  background: rgba(120, 20, 30, 0.35);
  border: 1px solid rgba(255, 120, 130, 0.35);
}

.success {
  color: #c4ffe0;
  background: rgba(20, 90, 50, 0.35);
  border: 1px solid rgba(120, 220, 160, 0.35);
}

.account-page {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: auto;
  padding: 32px 24px;
}

.account-page nav {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.account-page .mobile-brand,
.message-page .mobile-brand {
  display: block;
}

.account-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  margin-top: 36px;
  padding: 42px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(24px) saturate(150%);
}

.account-card h1 {
  margin: 16px 0;
  font: 400 2.1rem / 1.15 var(--font-display);
}

.account-card p {
  color: var(--text-soft);
  line-height: 1.6;
}

.eyebrow {
  letter-spacing: 0.14em;
  color: #9ec2ff;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 400;
}

.account-card dl {
  margin: 32px 0;
}

.account-card dt {
  color: var(--text-mute);
  margin-top: 20px;
  font-size: 0.8rem;
}

.account-card dd {
  color: var(--text);
  overflow-wrap: anywhere;
  margin: 6px 0;
}

.muted {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.88rem;
  color: var(--text-mute);
}

.message-page {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 10vh auto;
  padding: 20px;
}

.message-page .primary-button {
  margin-top: 24px;
}

@media (min-width: 1500px) {
  .auth-layout {
    padding: 36px max(28px, calc(50vw - 680px));
  }
}

@media (max-width: 1100px) {
  .auth-layout {
    gap: 18px;
    padding: 18px;
  }

  .brand-panel {
    padding: 32px 26px;
  }

  .brand-intro h1 {
    font-size: 2.2rem;
  }

  .form-panel {
    padding: 36px 24px;
  }
}

@media (max-width: 800px) {
  body::before,
  body::after {
    opacity: 0.7;
  }

  .auth-layout {
    display: block;
    padding: 14px;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: auto;
    max-height: none;
    padding: 28px 20px 32px;
    align-self: stretch;
  }

  .form-wrap {
    width: min(420px, 100%);
  }

  .mobile-brand {
    display: block;
  }

  .account-card {
    padding: 26px;
  }

  .account-card h1 {
    font-size: 1.8rem;
  }

  .account-page nav .mobile-brand {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
