/* @dumont/auth-ui — design tokens (split-panel products inherit from host app CSS) */
:root {
  --auth-shell-bg: #0a6b64;
  --auth-shell-text: #ffffff;
  --auth-shell-text-muted: rgba(255, 255, 255, 0.52);
  --auth-shell-text-soft: rgba(255, 255, 255, 0.70);
  --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.10);
  --auth-shell-border-faint: rgba(255, 255, 255, 0.12);
  --auth-shell-card-bg: rgba(255, 255, 255, 0.05);
  --auth-panel-bg: #f0eee9;
  --auth-card-bg: #ffffff;
  --auth-field-bg: #fafaf9;
  --auth-text-muted: #8a8880;
  --auth-label: #5f5e5a;
  --auth-accent: #1ec8b0;
  --auth-accent-subtle: rgba(30, 200, 176, 0.12);
  --auth-navy: #0d2b4e;
  --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;
}


/* @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;
}
