/* Layout for features/app/login-page.ts — the design handoff's Login screen
   (2026-09-27): the wordmark in a bare header, one centred graphite card.
   Component look (input, prefixed input, buttons) stays in ui.css; this is
   only the page's own frame and rhythm, the same split checkout.css and
   moderation.css already use. */

body[data-page="login"] {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--kasb-ground);
  font-size: 17px;
  line-height: 1.75;
}

.login__header {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 16px clamp(18px, 4vw, 32px);
}
.login__header .brand-lockup { color: var(--kasb-brand-text); }

.login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 32px);
}

.login__card {
  width: 100%;
  max-width: 440px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--kasb-hairline);
  border-radius: var(--kasb-radius-xl);
  background: var(--kasb-surface);
}

.login__step { display: flex; flex-direction: column; gap: 20px; }
.login__step[hidden] { display: none; }

.login__title,
.login__heading {
  margin: 0;
  font-family: var(--kasb-font-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
}
.login__lede { margin: 8px 0 0; font-size: 15px; color: var(--kasb-text-3); }

.login__form { display: flex; flex-direction: column; gap: 16px; }
.login__field { display: flex; flex-direction: column; gap: 6px; }
.login__field .field-error { margin: 0; font-weight: 500; }

.login__phone { font-size: 17px; letter-spacing: 0.05em; }
/* The error border belongs on the prefixed wrapper, which draws the frame. */
.input-prefixed:has(.input[aria-invalid="true"]) { border-color: var(--kasb-error); }

/* The one-time code: big, spaced, centred. */
.login__code {
  min-height: 56px;
  font-size: 28px;
  letter-spacing: 0.5em;
  text-align: center;
  /* Balances the trailing letter-space so the digits sit truly centred. */
  padding-inline-start: calc(14px + 0.5em);
}

.login__inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--kasb-brand-text);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}
.login__inline-link:hover { color: var(--kasb-text); }

.login__resend { margin: 0; text-align: center; }
.login__resend .button-text {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--kasb-text-3);
  cursor: pointer;
}
.login__resend .button-text:not(:disabled) { color: var(--kasb-brand-text); text-decoration: underline; }
.login__resend .button-text:disabled { cursor: default; }

.login__switch { margin: 0; font-size: 14px; color: var(--kasb-text-3); }
.login__switch a { color: var(--kasb-brand-text); }
.login__switch a:hover { color: var(--kasb-text); }
