/**
 * @dumont/auth-ui tokens — canonical auth surface variables.
 * Keep in sync with Airspace/docs/design-system/tokens/auth-tokens.css
 */

:root {
  --auth-accent: var(--color-accent, #1ec8b0);
  --auth-accent-subtle: var(--color-accent-muted, rgba(30, 200, 176, 0.12));
  --auth-navy: var(--color-navy, #0d2b4e);

  --auth-shell-bg: color-mix(in srgb, var(--auth-navy) 85%, var(--auth-accent));
  --auth-shell-text: #ffffff;
  --auth-shell-text-muted: rgba(255, 255, 255, 0.52);
  --auth-shell-text-soft: rgba(255, 255, 255, 0.7);
  --auth-shell-text-faint: rgba(255, 255, 255, 0.25);
  --auth-shell-text-dim: rgba(255, 255, 255, 0.22);
  --auth-shell-border: rgba(255, 255, 255, 0.1);
  --auth-shell-border-faint: rgba(255, 255, 255, 0.12);
  --auth-shell-card-bg: rgba(255, 255, 255, 0.05);
  --auth-shell-glow: rgba(245, 197, 58, 0.16);

  --auth-panel-bg: #f0eee9;
  --auth-card-bg: #ffffff;
  --auth-field-bg: #fafaf9;
  --auth-text-muted: #8a8880;
  --auth-label: #5f5e5a;
  --auth-border: #e0ddd8;
  --auth-divider: #e8e6df;
  --auth-divider-text: #b4b2a9;
  --auth-error: #c94040;
  --auth-shadow: rgba(13, 43, 78, 0.07);
  --auth-shadow-sm: rgba(13, 43, 78, 0.05);
  --auth-card-border: rgba(13, 43, 78, 0.08);
  --auth-compact-bg-start: #091e36;
  --auth-compact-bg-end: #153a68;
}


@import './auth-tokens.css';

/* @dumont/auth-ui — split-panel login shell (tokens in auth-tokens.css) */

@keyframes auth-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.auth-shell-left {
  position: fixed;
  inset: 0 auto 0 0;
  width: 52%;
  min-height: 100vh;
  background: var(--auth-shell-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 0;
}
.auth-shell-left[hidden],
.auth-mobile-bar[hidden] {
  display: none !important;
}
.auth-shell-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.072) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}
.auth-shell-left::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -25%;
  width: 85%;
  height: 75%;
  background: radial-gradient(ellipse, var(--auth-shell-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.auth-shell-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.18) 0%, transparent 55%);
}
.auth-shell-left-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 48px 40px;
}
.auth-shell-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.auth-shell-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.auth-shell-logo-word {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.auth-shell-spacer { flex: 1; }
.auth-shell-copy { margin-bottom: 32px; }
.auth-shell-headline {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.auth-shell-copy {
  --auth-shell-mark-size: 56px;
  --auth-shell-mark-gap: 18px;
}
.auth-shell-lockup {
  display: flex;
  align-items: center;
  gap: var(--auth-shell-mark-gap);
  margin: 0 0 14px;
}
.auth-shell-lockup .auth-shell-headline {
  margin: 0;
}
.auth-shell-headline-mark {
  display: block;
  height: var(--auth-shell-mark-size);
  width: var(--auth-shell-mark-size);
  flex-shrink: 0;
  object-fit: contain;
  object-position: center center;
}
.auth-shell-copy > .auth-shell-sub {
  padding-left: calc(var(--auth-shell-mark-size) + var(--auth-shell-mark-gap));
}
.auth-shell-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--auth-shell-text-muted);
  max-width: 440px;
}
.auth-shell-testimonials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 440px;
}
.auth-shell-testimonial {
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--auth-shell-card-bg);
  border: 0.5px solid var(--auth-shell-border);
}
.auth-shell-testimonial p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--auth-shell-text-soft);
  margin: 0;
}
.auth-shell-quote-meta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--auth-shell-text-faint);
}
.auth-shell-trusted { margin-bottom: 0; flex-shrink: 0; }
.auth-shell-trusted-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--auth-shell-text-dim);
  margin-bottom: 12px;
}
.auth-shell-marquee-wrap {
  overflow: hidden;
  min-height: 18px;
  margin-bottom: 4px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.auth-shell-marquee {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: auth-marquee 22s linear infinite;
}
.auth-shell-marquee span {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--auth-shell-text-dim);
  white-space: nowrap;
  line-height: 1;
}
.auth-shell-footer {
  flex-shrink: 0;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--auth-shell-border);
  font-size: 11px;
  color: var(--auth-shell-text-dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.auth-shell-footer a {
  color: var(--auth-shell-text-dim);
  text-decoration: none;
}
.auth-shell-footer a:hover { opacity: 0.7; }
.auth-shell-footer-dot { color: var(--auth-shell-border-faint); }

.auth-mobile-bar {
  display: none;
  background: var(--auth-shell-bg);
  padding: 16px 24px;
}
.auth-mobile-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-mobile-logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.auth-mobile-logo-word {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.auth-view {
  min-height: 100vh;
  background: var(--auth-panel-bg);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}
.auth-view-right {
  margin-left: 52%;
  width: 48%;
  min-height: 100vh;
}
.auth-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  min-height: 100vh;
}
.auth-card-v2 {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: var(--auth-card-bg);
  box-shadow: 0 2px 20px var(--auth-shadow), 0 1px 4px var(--auth-shadow-sm);
  border: 0.5px solid var(--auth-card-border);
}
.auth-form-v2 { display: flex; flex-direction: column; gap: 14px; }
#login-step-email,
#login-step-password,
#login-step-mfa {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#login-step-password[hidden],
#login-step-mfa[hidden],
#login-step-email[hidden] { display: none !important; }
.auth-btn-primary {
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.auth-form-v2 .auth-error {
  min-height: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--auth-error);
}
.auth-form-v2 .auth-error:empty { display: none; }
.auth-heading-block { margin-bottom: 0; }
.auth-mfa-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.auth-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--auth-navy);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.auth-lead {
  font-size: 13px;
  color: var(--auth-text-muted);
  line-height: 1.5;
}
.auth-lead strong { color: var(--auth-navy); font-weight: 600; }
.field-v2 { display: flex; flex-direction: column; gap: 4px; }
.field-label-v2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-label);
}
.field-input-v2 {
  height: 40px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--auth-navy);
  background: var(--auth-field-bg);
  width: 100%;
  box-sizing: border-box;
}
.field-input-v2:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-accent-subtle);
  outline: none;
}
.field-input-mfa {
  font-size: 18px;
  letter-spacing: 6px;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.btn-teal {
  background: var(--auth-accent);
  color: #fff;
}
.btn-teal:hover { filter: brightness(0.92); }
.btn-teal:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.auth-social-divider::before,
.auth-social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-divider);
}
.auth-social-divider span {
  font-size: 11px;
  font-weight: 500;
  color: var(--auth-divider-text);
  white-space: nowrap;
}
.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-social {
  height: 36px;
  border: 1px solid var(--auth-border);
  background: var(--auth-field-bg);
  color: var(--auth-navy);
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  width: 100%;
}
.btn-social:hover { background: var(--auth-panel-bg); }
.auth-back-link {
  background: none;
  border: none;
  color: var(--auth-text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  margin-bottom: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.auth-back-link:hover { color: var(--auth-navy); }
.password-wrap { position: relative; }
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 11px;
  color: var(--auth-text-muted);
  cursor: pointer;
}
.auth-bottom-link {
  width: 100%;
  max-width: 400px;
  text-align: center;
  font-size: 13px;
  color: var(--auth-text-muted);
  margin-top: 20px;
}

@media (max-width: 1023px) {
  .auth-shell-left { display: none !important; }
  .auth-mobile-bar { display: block; }
  .auth-view-right { margin-left: 0; width: 100%; }
  .auth-view { justify-content: center; flex-direction: column; }
  .auth-panel { min-height: auto; padding: 24px 24px 48px; }
}


/* @dumont/auth-ui — compact card layout (Console) */

#login-screen.dumont-auth-compact,
.dumont-auth-compact#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--auth-compact-bg-start, #091e36) 0%,
    var(--auth-navy, #0d2b4e) 60%,
    var(--auth-compact-bg-end, #153a68) 100%
  );
}

.dumont-auth-compact .login-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 380px;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dumont-auth-compact .login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.dumont-auth-compact .login-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 12px;
}

.dumont-auth-compact .login-logo-div {
  width: 1px;
  height: 44px;
  background: #e5e7eb;
}

.dumont-auth-compact .login-logo-text {
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 300;
  color: var(--auth-navy);
  letter-spacing: -0.5px;
}

.dumont-auth-compact .btn-login {
  width: 100%;
  padding: 13px;
  background: var(--auth-accent, #1ec8b0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
}

.dumont-auth-compact .btn-login:hover { opacity: 0.9; }
.dumont-auth-compact .btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

.dumont-auth-compact .login-hint {
  margin-top: 14px;
  font-size: 12px;
  color: #9ca3af;
}

.dumont-auth-compact .login-error {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.dumont-auth-compact .login-step { display: none; }
.dumont-auth-compact .login-step.active { display: block; }

.dumont-auth-compact .login-field {
  margin-bottom: 16px;
  text-align: left;
}

.dumont-auth-compact .login-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 6px;
}

.dumont-auth-compact .login-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  color: var(--auth-navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafafa;
  box-sizing: border-box;
}

.dumont-auth-compact .login-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-accent-subtle);
  background: #fff;
}

.dumont-auth-compact .login-input-wrap { position: relative; }

.dumont-auth-compact .login-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 2px;
  display: flex;
  align-items: center;
}

.dumont-auth-compact .login-email-display {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  text-align: left;
  word-break: break-all;
}

.dumont-auth-compact .login-back {
  background: none;
  border: none;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dumont-auth-compact .login-back:hover { color: var(--auth-accent); }

.dumont-auth-compact .login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.dumont-auth-compact .login-divider-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.dumont-auth-compact .login-divider-text {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.dumont-auth-compact .btn-login-sso,
.dumont-auth-compact .btn-login-google {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  color: var(--auth-navy);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dumont-auth-compact .btn-login-sso:hover,
.dumont-auth-compact .btn-login-google:hover { background: #f9fafb; }

.dumont-auth-compact .btn-login-google[hidden],
.dumont-auth-compact .btn-login-sso[hidden] { display: none !important; }

.dumont-auth-compact .login-mfa-input {
  width: 100%;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 24px;
  font-family: 'DM Mono', ui-monospace, monospace;
  color: var(--auth-navy);
  outline: none;
  letter-spacing: 0.3em;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fafafa;
  box-sizing: border-box;
}

.dumont-auth-compact .login-mfa-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-accent-subtle);
  background: #fff;
}
