/* Login page (login.html): the generated illustration with the claim on the left, the sign-in card on the right;
   stacked on narrow screens. Colours come from the tokens in app.css. */

.login {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(400px, 1fr); min-height: 100dvh;
  max-width: none; margin: 0; padding: 0; /* full bleed, unlike the app's <main> */
}

.login-hero { position: relative; overflow: hidden; background: #dde6ea; }
.login-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.login-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 40, 48, 0.86) 0%, rgba(26, 40, 48, 0.5) 30%, rgba(26, 40, 48, 0) 58%);
}
.login-hero-text { position: absolute; left: 48px; right: 48px; bottom: 44px; z-index: 1; max-width: 540px; color: #fff; }
.login-kicker {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
}
.login-kicker::before { content: ''; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); }
.login-claim { margin: 12px 0 10px; font-size: 34px; font-weight: 700; line-height: 1.15; text-wrap: balance; }
.login-sub { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }

.login-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 48px 32px; background: var(--surface); border-left: 3px solid var(--brand);
}
.login-card { width: 100%; max-width: 380px; animation: login-in 0.35s ease-out; }
@keyframes login-in { from { opacity: 0; transform: translateY(8px); } }

.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.login-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--topbar); color: #fff; }
.login-mark svg { width: 28px; height: 28px; }
.login-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.login-brand-text strong { font-size: 17px; }
.login-brand-text span { font-size: 12.5px; color: var(--muted); }
.login-card h1 { font-size: 28px; margin-bottom: 6px; }

.login-error { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-size: 14px; }

.login-form { display: grid; gap: 6px; }
.login-form label { margin-top: 10px; font-weight: 600; font-size: 14px; }
.login-form input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); outline: none; }
.password { position: relative; }
.password input { padding-right: 46px; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.password-toggle:hover, .password-toggle[aria-pressed='true'] { color: var(--accent); background: var(--accent-soft); }
.password-toggle svg { width: 20px; height: 20px; }
.login-submit { margin-top: 22px; padding: 12px 16px; font-size: 15px; }
.login-card .privacy { margin-top: 22px; }
.login-foot { margin: 0; font-size: 12.5px; color: var(--faint); }

@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-hero { height: 300px; }
  .login-hero-text { left: 24px; right: 24px; bottom: 22px; }
  .login-claim { font-size: 26px; margin: 8px 0 0; }
  .login-sub { display: none; }
  .login-panel { justify-content: flex-start; padding: 32px 20px 28px; border-left: 0; border-top: 3px solid var(--brand); }
  .login-brand { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
}
