/*
 * iAlert login styles.
 *
 * Surface treatment:
 *   - Light surface. White page, white card, hairline border, no shadow.
 *     Header chrome stays dark above; the auth surface inherits the
 *     centerpiece's white-page DNA so the page reads as one document.
 *
 * Form / provider order:
 *   - Form first, providers second. GitHub, Google, Microsoft, Plaid all
 *     front the email + password and sit OAuth underneath. Existing
 *     account holders hit the form they expect; providers are a shortcut.
 *   - Form chrome de-marketing'd. Submit, field labels, and the divider
 *     drop the uppercase + letterspacing recipe (which belongs on
 *     eyebrows and section CTAs, not on a Sign-in button).
 *   - Provider buttons restyled as outlined-on-light buttons. Hairline
 *     border, white surface, dark text, provider mark in brand color.
 *     The variant of Google's and Apple's brand guidelines that lets
 *     the buttons read as one cohesive group on a light card.
 */

/* Minimal auth chrome. Thin dark band, lockup-only. Used in place of the
   full site header on the login page. */
.ialert-auth-header {
  background: var(--ialert-navy);
  border-bottom: 1px solid var(--ialert-rule-on-dark);
  color: var(--ialert-on-dark);
  font-family: var(--ialert-font-display);
}
.ialert-auth-header *,
.ialert-auth-header *::before,
.ialert-auth-header *::after {
  box-sizing: border-box;
}
.ialert-auth-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
}
.ialert-auth-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ialert-on-dark);
}
.ialert-auth-header__brand-mark {
  display: block;
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.ialert-auth-header__brand-wordmark {
  font-family: "iAlert Wordmark", var(--ialert-font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ialert-on-dark);
}
.ialert-auth-header__brand-wordmark-i {
  color: var(--ialert-red);
}

.ialert-auth {
  --auth-card-w: 440px;
  --auth-rule: rgba(23, 26, 31, 0.14);
  --auth-hover: #faf8f3;

  background: var(--ialert-bg);
  color: var(--ialert-text);
  font-family: var(--ialert-font-display);
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 220px;
}
.ialert-auth *,
.ialert-auth *::before,
.ialert-auth *::after {
  box-sizing: border-box;
}

.ialert-auth__inner {
  width: 100%;
  max-width: var(--auth-card-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ialert-auth__card {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--ialert-border-subtle);
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
}

.ialert-auth__title {
  font-family: var(--ialert-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ialert-text);
  margin: 0 0 4px;
  text-align: center;
}
.ialert-auth__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--ialert-text-muted);
  margin: 0 0 26px;
  text-align: center;
}

/* Form. Sits above the providers now. */
.ialert-auth__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ialert-auth__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ialert-auth__field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ialert-text);
}
.ialert-auth__field-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ialert-red);
  text-decoration: none;
}
.ialert-auth__field-link:hover,
.ialert-auth__field-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ialert-auth__input {
  width: 100%;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid var(--auth-rule);
  color: var(--ialert-text);
  font-family: var(--ialert-font-display);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color .15s ease;
}
.ialert-auth__input::placeholder {
  color: var(--ialert-text-muted);
  font-weight: 400;
}
.ialert-auth__input:focus {
  border-color: var(--ialert-text);
}

.ialert-auth__pwd-wrap {
  position: relative;
}
.ialert-auth__pwd-wrap .ialert-auth__input {
  padding-right: 40px;
}
.ialert-auth__eye-btn {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #888;
  line-height: 0;
}
.ialert-auth__eye-btn:hover { color: var(--ialert-navy); }

/* Submit. Brand red, sentence case, no letterspacing. */
.ialert-auth__submit {
  margin-top: 6px;
  width: 100%;
  padding: 12px 22px;
  background: var(--ialert-red);
  color: #ffffff;
  font-family: var(--ialert-font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ialert-auth__submit:hover,
.ialert-auth__submit:focus-visible {
  background: #a91823;
  outline: none;
}


/* Banded sign-up footer inside the card. Stripe pattern: separates
   "I'm signing in" from "I don't have an account" with a tonal lift
   and a hairline rule, instead of folding the prompt into the form
   body. */
.ialert-auth__signup {
  margin: 28px -40px -32px;
  padding: 18px 40px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ialert-text-muted);
  background: var(--auth-hover);
  border-top: 1px solid var(--auth-rule);
}
.ialert-auth__signup-link {
  color: var(--ialert-red);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.ialert-auth__signup-link:hover,
.ialert-auth__signup-link:focus-visible {
  text-decoration: underline;
  outline: none;
}


@media (max-width: 520px) {
  .ialert-auth { padding: 32px 16px; }
  .ialert-auth__card { padding: 32px 24px 28px; }
  .ialert-auth__title { font-size: 20px; }
  .ialert-auth__signup { margin: 24px -24px -28px; padding: 16px 24px; }
}
