/* Swiss Ledger — authentication surfaces */
:root {
  --ledger-bg: #F7F7FB;
  --ledger-surface: #FFFFFF;
  --ledger-ink: #171A31;
  --ledger-text: #171A31;
  --ledger-muted: #686C82;
  --ledger-border: #E7E5EF;
  --ledger-accent: #2452D8;
  --ledger-accent-soft: #EEF3FF;
  --ledger-radius: 10px;
  --indigo-50: #F7F5FF;
  --indigo-100: #F0EDFF;
  --indigo-600: #2452D8;
  --indigo-700: #272347;
  --indigo-800: #1B1934;
  --cyan-500: #686C82;
}

body {
  background: var(--ledger-bg) !important;
  color: var(--ledger-text);
}

.register-page {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 100dvh;
}

.register-left {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 3rem clamp(2rem, 5vw, 5rem);
  background: var(--ledger-ink) !important;
  overflow: hidden;
}

.register-left::before,
.register-left::after,
#hero-3d-container,
.particles {
  display: none !important;
}

.left-content {
  width: 100%;
  max-width: 31rem;
  margin: auto;
}

.brand-logo {
  display: inline-flex;
  margin-bottom: 3.5rem;
}

.brand-logo img {
  width: auto;
  height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.left-headline {
  margin-bottom: 1rem;
  color: #F4F6F8;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.left-headline .text-gradient {
  display: inline;
  background: none !important;
  color: #D7D3E3 !important;
  -webkit-text-fill-color: currentColor !important;
}

.left-subtitle {
  max-width: 34ch;
  margin-bottom: 2.25rem;
  color: #9DA7B6;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.feature-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  transform: none !important;
}

.feature-pill:first-child {
  border-top: 0;
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: transparent;
  color: #D7D3E3;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: none;
}

.pill-text h4 {
  color: #E6EAF0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.pill-text p {
  margin-top: 0.15rem;
  color: #8792A2;
  font-size: 0.75rem;
  line-height: 1.45;
}

.trust-row {
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
  color: #8792A2;
  font-size: 0.6875rem;
  font-weight: 500;
}

.trust-item svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #D7D3E3;
}

.register-right {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 4.5rem 2rem 3rem;
  background: var(--ledger-bg) !important;
  overflow-y: auto;
}

.register-right::before {
  display: none !important;
}

.lang-switcher {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  gap: 0.1rem;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 2rem;
  padding: 0 0.4rem;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ledger-muted) !important;
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: transparent !important;
  color: var(--ledger-text) !important;
  border-bottom-color: var(--ledger-accent) !important;
}

.form-container {
  width: 100%;
  max-width: 430px;
}

.form-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-header .mobile-logo {
  display: none;
  margin-bottom: 1.5rem;
}

.form-header .mobile-logo img {
  width: auto;
  height: 34px;
  filter: none !important;
}

.form-header h1 {
  margin-bottom: 0.35rem;
  color: var(--ledger-text) !important;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.form-header p {
  color: var(--ledger-muted) !important;
  font-size: 0.8125rem;
}

.form-card {
  padding: 1.75rem;
  border: 1px solid var(--ledger-border);
  border-radius: var(--ledger-radius);
  background: var(--ledger-surface);
  box-shadow: none;
  animation: none;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-row {
  gap: 0.75rem;
}

.form-label {
  margin-bottom: 0.4rem;
  color: var(--ledger-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.form-input {
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--ledger-border);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--ledger-text);
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form-input.has-icon {
  padding-left: 2.4rem;
}

.form-input::placeholder {
  color: #7F8997;
}

.form-input:focus {
  border-color: var(--ledger-accent);
  box-shadow: 0 0 0 3px var(--ledger-accent-soft);
}

.input-wrap .input-icon {
  left: 0.85rem;
  color: #7F8997;
}

.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--ledger-accent);
}

.password-toggle {
  color: #7F8997;
}

.password-toggle:hover {
  color: var(--ledger-accent);
}

.btn-register,
.btn-login-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--ledger-accent);
  border-radius: 6px;
  background-color: var(--ledger-accent) !important;
  background-image: none !important;
  color: #FFFFFF;
  box-shadow: none !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transform: none !important;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.btn-register::before {
  display: none;
}

.btn-register:hover,
.btn-login-cta:hover {
  background-color: #1B3A9E !important;
  background-image: none !important;
  border-color: #1B3A9E;
  box-shadow: none !important;
  transform: none !important;
}

.btn-register:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-link {
  margin-top: 1.25rem;
  color: var(--ledger-muted);
  font-size: 0.75rem;
}

.login-link a {
  color: var(--ledger-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #D7D3E3;
  text-underline-offset: 2px;
}

.form-social-proof {
  margin-top: 1.25rem;
  border-top-color: var(--ledger-border);
}

.social-proof-text {
  color: var(--ledger-muted);
  font-size: 0.6875rem;
}

.social-proof-text strong {
  color: var(--ledger-text);
}

.alert {
  border-radius: 6px;
  box-shadow: none;
}

.alert-error {
  background: #FEF2F2;
  border-color: #FECACA;
}

.alert-success {
  background: #F0FDF4 !important;
  border-color: #BBF7D0 !important;
}

.steps-bar {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ledger-border);
  margin-bottom: 1.5rem;
}

.step-item {
  color: var(--ledger-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}

.step-item .step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--ledger-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ledger-muted);
  font-size: 0.625rem;
  font-weight: 600;
  box-shadow: none;
}

.step-item.active,
.step-item.done {
  color: var(--ledger-text);
}

.step-item.active .step-circle,
.step-item.done .step-circle {
  border-color: var(--ledger-accent);
  background: var(--ledger-accent);
  color: #FFFFFF;
}

.step-connector {
  background: var(--ledger-border);
}

.step-connector.done {
  background: var(--ledger-accent);
}

.success-card {
  padding: 0.5rem;
}

.success-icon-wrap {
  background: var(--ledger-accent-soft);
  color: var(--ledger-accent);
  box-shadow: none;
}

.success-title {
  color: var(--ledger-text);
}

.email-notice {
  border: 1px solid var(--ledger-border);
  border-radius: 6px;
  background: var(--ledger-bg);
}

.cookie-banner {
  border-radius: 8px;
  background: var(--ledger-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 12px 32px rgba(23, 26, 33, 0.12) !important;
}

.cookie-text h3 {
  color: var(--ledger-text);
}

.cookie-text p {
  color: var(--ledger-muted);
}

.cookie-buttons .btn {
  border-radius: 6px;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .register-page {
    grid-template-columns: 1fr;
  }

  .register-left {
    display: none;
  }

  .register-right {
    min-height: 100dvh;
    padding: 4.5rem 1.25rem 2rem;
    background: var(--ledger-bg) !important;
  }

  .form-header .mobile-logo {
    display: block;
  }

  .form-header h1 {
    color: var(--ledger-text) !important;
    font-size: 1.65rem;
  }

  .form-header p {
    color: var(--ledger-muted) !important;
  }

  .form-card {
    background: var(--ledger-surface);
    border-color: var(--ledger-border);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .login-link {
    color: var(--ledger-muted);
  }

  .login-link a {
    color: var(--ledger-accent);
  }

  .form-social-proof {
    border-top-color: var(--ledger-border);
  }

  .social-proof-text {
    color: var(--ledger-muted);
  }

  .social-proof-text strong {
    color: var(--ledger-text);
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 1.25rem;
  }

  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }
}


/* Keyboard focus and reduced motion */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ledger-accent) !important;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* One real product moment on the auth cover: the week ledger. */
.brand-logo img {
  height: 52px;
}

.auth-week {
  margin: 2rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  color: #8792A2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.auth-week-head span:last-child {
  color: #D7D3E3;
}

.auth-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
}

.auth-day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.auth-day-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 60px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-day-track > span {
  display: block;
  width: 100%;
  border-radius: 3px;
  background: #54617A;
}

.auth-day.is-current .auth-day-track > span {
  background: #7C9BFF;
}

.auth-day-label,
.auth-day-hours {
  overflow: hidden;
  max-width: 100%;
  color: #8792A2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.5625rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.auth-day.is-current .auth-day-label,
.auth-day.is-current .auth-day-hours {
  color: #DCE6FF;
}

.auth-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8792A2;
  font-size: 0.6875rem;
  font-weight: 500;
}

.auth-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-facts span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #54617A;
}

/* Keep consent compact and out of the form. */
.cookie-banner {
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  width: min(430px, calc(100vw - 2.5rem));
  max-width: 430px;
  padding: 1rem 1.1rem;
  align-items: flex-start;
}

.cookie-banner-content {
  align-items: flex-start;
  gap: 0.9rem;
  flex-direction: column;
}

.cookie-text h3 {
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.cookie-text p {
  font-size: 0.75rem;
  line-height: 1.5;
}

.cookie-buttons {
  gap: 0.5rem;
}

.cookie-buttons .btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }
}


.cookie-banner.show,
.cookie-banner.show .cookie-buttons,
.cookie-banner.show .cookie-buttons .btn {
  visibility: visible !important;
  opacity: 1 !important;
}

.cookie-banner.show {
  transform: none !important;
}

.cookie-banner.show .cookie-buttons {
  display: flex !important;
}

.cookie-buttons .btn-primary {
  border: 1px solid #2452D8 !important;
  background: #2452D8 !important;
  color: #FFFFFF !important;
}

.cookie-buttons .btn-primary:hover {
  border-color: #1B3A9E !important;
  background: #1B3A9E !important;
}

.cookie-buttons .btn-outline {
  border: 1px solid var(--ledger-border) !important;
  color: var(--ledger-muted) !important;
}

.cookie-text a {
  color: #2452D8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
