/*
 * Login page styles (TRA-12).
 *
 * Single-column 400px shell with a 96px Khaki band at the top of the
 * viewport carrying the Tiree wordmark — mirrors the cover-page Khaki
 * convention from the Word report. All values consume tokens from
 * tokens.css. Page is dormant until WP11 lands the auth endpoint.
 */

body.login-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  background: var(--color-bg);
}

.login-band {
  flex: 0 0 auto;
  height: var(--space-9); /* 6rem ~= 96px */
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  background: var(--tiree-khaki);
}

.login-wordmark {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.login-shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: 400px;
  margin: var(--space-7) auto var(--space-5);
  padding: 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.login-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

.login-notice {
  /* Inherits .banner-warning from styles.css; this hook tightens spacing
     for the login layout only. */
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.login-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.login-error {
  margin: 0;
  min-height: 1em;
  color: var(--color-error);
  font-size: var(--text-xs);
}

.login-submit {
  width: 100%;
}

.login-footer {
  margin: 0;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
