/* Login screen — uses CSS variables from .page-stripe in stripe-theme.css */

body.page-stripe.login-page {
  background-color: #eef2f7;
  background-image:
    radial-gradient(ellipse 90% 60% at 12% -20%, rgba(99, 91, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 8%, rgba(10, 37, 64, 0.07), transparent 50%),
    radial-gradient(ellipse 55% 35% at 50% 108%, rgba(99, 91, 255, 0.08), transparent 45%);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 3rem);
  position: relative;
}

.login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='%236353ff' fill-opacity='0.04' d='M0 0h48v48H0z'/%3E%3Cpath fill='none' stroke='%230a2540' stroke-opacity='0.06' d='M0 24h48M24 0v48'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow:
    0 1px 1px rgba(10, 37, 64, 0.04),
    0 8px 28px rgba(10, 37, 64, 0.07),
    0 24px 64px rgba(10, 37, 64, 0.09);
  padding: 2.5rem 2rem 2rem;
}

@media (min-width: 480px) {
  .login-panel {
    padding: 2.75rem 2.25rem 2.25rem;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #635bff 0%, #4b44d4 45%, #0a2540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.35);
}

.login-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--stripe-ink, #0a2540);
  line-height: 1.2;
}

.login-product {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stripe-accent, #635bff);
  letter-spacing: 0.02em;
}

.login-lead {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--stripe-ink-secondary, #425466);
  line-height: 1.5;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.login-alert {
  font-size: 0.8125rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.login-alert__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1rem;
}

.login-alert--err {
  color: var(--stripe-error, #9e1b1b);
  background: var(--stripe-error-bg, #fce8e8);
  border: 1px solid rgba(158, 27, 27, 0.18);
}

.login-alert--ok {
  color: var(--stripe-success, #0c6e3a);
  background: var(--stripe-success-bg, #e6f7ed);
  border: 1px solid rgba(12, 110, 58, 0.18);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stripe-ink, #0a2540);
  letter-spacing: -0.01em;
}

/* Explicit fallbacks so fields stay visible even if stripe-theme.css did not load */
.login-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.95rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--stripe-ink, #0a2540);
  background-color: #fff;
  border: 1px solid var(--stripe-border, #e3e8ee);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-input::placeholder {
  color: var(--stripe-ink-muted, #697386);
  opacity: 0.75;
}

.login-input:hover:not(:focus) {
  border-color: #cdd5df;
}

.login-input:focus {
  outline: none;
  border-color: var(--stripe-accent, #635bff);
  box-shadow: 0 0 0 3px var(--stripe-accent-subtle, rgba(99, 91, 255, 0.08));
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.login-foot {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stripe-border, #e3e8ee);
  text-align: center;
  font-size: 0.75rem;
  color: var(--stripe-ink-muted, #697386);
  line-height: 1.5;
}

.login-foot strong {
  color: var(--stripe-ink-secondary, #425466);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .login-input,
  .login-mark {
    transition: none;
  }
}
