/* ======================================================
   Login Page — Stripe Design System
   ====================================================== */

:root {
  /* Colors */
  --color-electric-iris: #533afd;
  --color-midnight-ink: #061b31;
  --color-steel: #50617a;
  --color-slate: #64748d;
  --color-pewter: #7d8ba4;
  --color-fog: #3c4f69;
  --color-mist: #e5edf5;
  --color-snow: #f8fafd;
  --color-paper: #ffffff;
  --color-periwinkle-tint: #e2e4ff;

  /* Typography */
  --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;

  /* Scale */
  --text-caption: 14px;
  --text-body: 16px;

  /* Spacing */
  --card-padding: 24px;
  --element-gap: 16px;

  /* Radius */
  --radius-md: 4px;

  /* Shadows */
  --shadow-sm: rgba(23, 23, 23, 0.06) 0px 3px 6px 0px;
}

/* ---- Reset -------------------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

/* ---- Page --------------------------------------------------------------- */

.login-stripe-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mist);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 16px;
}

/* ---- Card --------------------------------------------------------------- */

.login-stripe-card {
  background: var(--color-snow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--card-padding);
  width: 100%;
  max-width: 420px;
}

/* ---- Logo / Heading ----------------------------------------------------- */

.login-stripe-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-stripe-logo-link {
  font-size: 28px;
  font-weight: var(--font-weight-light);
  letter-spacing: -0.025em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--color-electric-iris), var(--color-steel));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* ---- Form field spacing ------------------------------------------------- */

.login-stripe-field {
  margin-bottom: var(--element-gap);
}

/* ---- Inputs ------------------------------------------------------------- */

.login-stripe-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-mist);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  color: var(--color-midnight-ink);
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.login-stripe-input:focus {
  outline: none;
  border-color: var(--color-electric-iris);
  box-shadow: 0 0 0 3px var(--color-periwinkle-tint);
}

.login-stripe-input::placeholder {
  color: var(--color-pewter);
}

/* ---- Primary CTA Button ------------------------------------------------- */

.login-stripe-button {
  width: 100%;
  padding: 12px 16px;
  margin-top: 4px;
  background: var(--color-electric-iris);
  color: var(--color-paper);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-appearance: none;
}

.login-stripe-button:hover {
  background: #624cfd;
}

.login-stripe-button:active {
  background: #4a35e4;
}

.login-stripe-button:focus-visible {
  outline: 2px solid var(--color-electric-iris);
  outline-offset: 2px;
}

/* ---- Error message ------------------------------------------------------ */

.login-stripe-error {
  background: #f8f9fb;
  border-left: 3px solid var(--color-fog);
  color: var(--color-steel);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--element-gap);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  line-height: 1.43;
}

/* ---- Flash messages ----------------------------------------------------- */

.login-stripe-flash {
  background: #f8f9fb;
  border-left: 3px solid var(--color-electric-iris);
  color: var(--color-midnight-ink);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--element-gap);
  font-size: var(--text-caption);
  font-weight: var(--font-weight-regular);
  line-height: 1.43;
}

/* ---- Logged-in state ---------------------------------------------------- */

.login-stripe-logged-in {
  color: var(--color-steel);
  font-size: var(--text-caption);
  margin-bottom: var(--element-gap);
}

.login-stripe-link {
  color: var(--color-electric-iris);
  text-decoration: none;
  font-weight: var(--font-weight-regular);
}

.login-stripe-link:hover {
  text-decoration: underline;
}

/* ---- Footer ------------------------------------------------------------- */

.login-stripe-footer {
  text-align: center;
  color: var(--color-pewter);
  font-size: var(--text-caption);
  padding-top: var(--card-padding);
  margin-top: var(--element-gap);
  border-top: 1px solid var(--color-mist);
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 480px) {
  .login-stripe-page {
    padding: 12px;
    align-items: flex-start;
    padding-top: 48px;
  }

  .login-stripe-card {
    padding: 20px;
  }

  .login-stripe-logo-link {
    font-size: 24px;
  }

  .login-stripe-logo {
    margin-bottom: 24px;
  }
}
