/* Login page (§7.3, templates/login.php). Tokens only (§29.1), mobile first; the light, dark and auto themes come from
   tokens.css through <html data-theme>. Classes are prefixed "auth-" (§34.3). */

.auth-login-page {
  background: var(--bg-app);
  background-color: var(--bg-canvas);
  background-attachment: fixed;
}

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

.auth-login-card {
  box-shadow: var(--shadow-lg);
}

.auth-login-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
}

.auth-login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.auth-login-logo {
  display: block;
  width: auto;
  max-width: 200px;
  height: 48px;
  margin-bottom: var(--space-2);
  object-fit: contain;
}

.auth-login-title {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.auth-login-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-md);
}

.auth-login-alert {
  align-items: center;
}

.auth-login-form {
  gap: var(--space-4);
}

.auth-login-form .input {
  min-height: var(--btn-h-lg);
  font-size: var(--fs-lg);
}

.auth-login-reveal {
  min-width: var(--btn-h-lg);
}

.auth-login-reveal .auth-icon-hide,
.auth-login-reveal[aria-pressed="true"] .auth-icon-show {
  display: none;
}

.auth-login-reveal[aria-pressed="true"] .auth-icon-hide {
  display: inline-block;
}

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

.auth-login-remember .field-hint {
  padding-inline-start: calc(16px + var(--space-2));
}

.auth-login-submit {
  margin-top: var(--space-1);
}

.auth-login-noscript {
  margin: 0;
}

.auth-login-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-inline: var(--space-2);
}

.auth-login-langs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.auth-login-lang {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.auth-login-lang:hover {
  background: var(--row-hover);
  color: var(--text);
}

.auth-login-lang:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.auth-login-lang[aria-current="true"] {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: var(--fw-semibold);
}

.auth-login-theme {
  min-height: var(--touch-min);
  color: var(--text-muted);
}

.auth-login-theme .auth-theme-icon {
  display: none;
}

.auth-login-theme[data-theme="light"] .auth-theme-light,
.auth-login-theme[data-theme="dark"] .auth-theme-dark,
.auth-login-theme[data-theme="auto"] .auth-theme-auto {
  display: inline-block;
}

@media (min-width: 480px) {
  .auth-login-body {
    padding: var(--space-8);
  }
}
