/* ==========================================================================
   Iron Woman — Login / Client Portal page (page-login.php)
   Standalone dark portal screen. Recreates design_files/Login.dc.html in clean
   CSS using the locked design tokens. Loads tokens.css + base.css first, so
   this file only carries page-specific layout. Never hardcode hex — use tokens.
   ========================================================================== */

.login-page {
  --accent: var(--accent, #be3a2b);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--login-bg);
  color: var(--light-body);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-page ::selection { background: var(--accent); color: var(--btn-text); }

/* Decorative grid + radial texture overlay (matches design). */
.login-page__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(45deg, rgba(0,0,0,.1) 0 1px, transparent 1px 18px),
    radial-gradient(120% 90% at 78% 6%, rgba(58,80,76,.42), rgba(10,16,15,0) 55%);
}

/* --- Top bar ------------------------------------------------------------- */
.login-page__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 56px);
}

.login-page__top .wordmark { color: var(--light-body); }
.login-page__top .wordmark__logo { height: clamp(26px, 2.4vw, 32px); }

.login-page__back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--light-6);
  transition: color var(--t-fast);
}
.login-page__back:hover,
.login-page__back:focus-visible { color: var(--light); }

/* --- Centered card ------------------------------------------------------- */
.login-page__main {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vh, 64px) clamp(20px, 5vw, 56px);
}

.login-card { width: 100%; max-width: 440px; }

.login-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(18px, 2.5vh, 26px);
}

.login-card__title {
  margin: 0 0 clamp(28px, 4vh, 40px);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -.016em;
  color: var(--light);
}

.login-card__form {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vh, 24px);
}

.login-field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--light-55);
  display: block;
  margin-bottom: 8px;
}

.login-field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.login-field__row .login-field__label { margin-bottom: 0; }

.login-card__forgot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--light-5);
  transition: color var(--t-fast);
}
.login-card__forgot:hover,
.login-card__forgot:focus-visible { color: var(--accent); }

/* Inputs reuse base.css .input--dark; nudge font size to match the design. */
.login-card .input--dark { font-size: 15px; padding: 14px 16px; }

/* --- Submit button (split label + arrow) --------------------------------- */
.login-card__submit {
  margin-top: 8px;
  display: inline-flex;
  align-items: stretch;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--btn-text);
  background: var(--accent);
  border: 1px solid var(--accent);
  transition: background var(--t-base), color var(--t-base);
}
.login-card__submit:hover,
.login-card__submit:focus-visible {
  background: transparent;
  color: var(--light);
}
.login-card__submit-label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
}
.login-card__submit-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid rgba(244,241,234,.4);
  font-size: 14px;
}

.login-card__note {
  margin: clamp(26px, 3.5vh, 36px) 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--light-45);
}
.login-card__note a {
  color: var(--accent);
  text-decoration: none;
}
.login-card__note a:hover,
.login-card__note a:focus-visible { text-decoration: underline; }

/* --- Bottom bar ---------------------------------------------------------- */
.login-page__bottom {
  position: relative;
  padding: clamp(18px, 2.5vw, 26px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--bd-dark-16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.login-page__bottom span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--light-40);
}

/* --- Accessibility ------------------------------------------------------- */
.login-page :is(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
