/* ============================================================
   Login — GLASS variant
   Tokens from design-system.css (loaded before this file).
   ============================================================ */

/* --- Full-page layout --- */
.login-glass-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

/* --- Backdrop --- */
.login-photo {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Embossed seeds over warm gradient fallback.
   If the PNG is absent (404), CSS treats it as transparent and the
   gradient layer shows through — no visible breakage. */
.login-photo--embossed {
  background-image:
    url('/assets/img/EmbossedSeeds.png'),
    radial-gradient(120% 80% at 20% 0%, #ffd55a 0%, #ffba00 35%, #db0007 90%, #7d0004 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.login-photo-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}

/* --- Glass stage (centers the card) --- */
.login-glass-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}

/* --- Glass card --- */
.glass-box.login-glass-box {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow:
    0 18px 50px rgba(0,0,0,0.18),
    0 4px 14px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.55);
  display: flex;
  flex-direction: column;
}

/* --- Brand block --- */
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.login-brand-token {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.20),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}
.login-brand-token img { width: 100%; height: 100%; display: block; }

.login-brand-text { display: flex; flex-direction: column; }

.login-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.login-brand-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 3px;
}

.login-brand--light { color: #000; }
.login-brand--light .login-brand-sub { color: var(--fg-3); }

/* --- Heading + lede --- */
.login-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #0a0a0a;
  margin: 0 0 8px;
}
.login-h1--center { text-align: center; }

.login-lede {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(0,0,0,0.72);
  margin: 0 0 20px;
}
.login-lede--center { text-align: center; }

/* --- Form --- */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form--compact { gap: 12px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }

.login-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
}

.login-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* Frosted input */
.login-input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.55);
  color: #0a0a0a;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.login-input::placeholder { color: rgba(0,0,0,0.40); }
.login-input:focus {
  outline: none;
  background: rgba(255,255,255,0.75);
  border-color: var(--color-golden-yellow);
  box-shadow: 0 0 0 3px rgba(255,188,13,0.28);
}

/* Password wrapper + eye toggle */
.login-input-wrap { position: relative; }
.login-input-wrap .login-input { padding-right: 48px; }

.login-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(0,0,0,0.45);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.login-eye:hover { background: rgba(0,0,0,0.06); color: #0a0a0a; }

/* Remember checkbox */
.login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.72);
  cursor: pointer;
  user-select: none;
}
.login-remember input[type="checkbox"] {
  accent-color: var(--color-arches-red);
  width: 16px; height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Button atoms — mirrors ds-btn / ds-btn-primary from design-system.css,
   declared locally so login.html doesn't need the ds- prefix. */
.btn {
  font-family: inherit;
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.btn-primary {
  background: var(--color-golden-yellow);
  color: #000;
  box-shadow: 0 4px 14px rgba(255,188,13,0.40);
}
.btn-primary:hover {
  background: #ffc830;
  box-shadow: 0 6px 18px rgba(255,188,13,0.55);
}

/* Submit — full-width primary CTA */
.login-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 14px 22px;
  font-size: 15px;
}

/* Error */
.login-error {
  font-size: 13px;
  text-align: center;
  color: var(--color-arches-red);
  margin: 0;
}

/* Fineprint */
.login-fineprint {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(0,0,0,0.58);
  margin: 0;
}

/* Links */
.login-link {
  color: var(--color-arches-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.login-link--muted {
  color: rgba(0,0,0,0.58);
  font-size: 12px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.login-link--muted i { color: var(--color-arches-red); font-style: italic; }
.login-link--muted:hover { color: #0a0a0a; }

/* --- Responsive --- */
@media (max-width: 880px) {
  .login-glass-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .login-glass-wrap {
    padding: 16px;
    align-items: flex-start;
    padding-top: 32px;
  }
  .glass-box.login-glass-box {
    padding: 28px 20px 24px;
  }
}
