/* Login page */
.auth-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 24px 16px 40px;
}

.auth-panel {
  width: min(460px, 100%);
  padding: 32px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.auth-brand {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo {
  width: auto;
}

.auth-logo-light {
  display: none;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

html[data-theme="light"] .auth-logo-dark {
  display: none;
}

html[data-theme="light"] .auth-logo-light {
  display: block;
}

.auth-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 500;
}

.auth-alert-error {
  background: rgba(255, 111, 145, 0.12);
  color: var(--danger-text);
  border: 1px solid rgba(255, 111, 145, 0.22);
}
