.login-page {
  position: relative;
  display: grid;
  gap: 22px;
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: clamp(40px, 9vw, 96px) 0 48px;
}

.login-hero {
  display: grid;
  gap: 14px;
  text-align: center;
}

.login-hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.4rem);
}

.login-card {
  padding: clamp(20px, 4vw, 30px);
  background: rgba(255, 250, 247, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.16);
}

.login-card[hidden] {
  display: none;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
}

.auth-tab {
  flex: 1;
  min-height: 38px;
  color: #6b4d5f;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.auth-tab.is-active {
  color: #fffaf8;
  background: #8b5e76;
  box-shadow: 0 10px 26px rgba(99, 65, 91, 0.22);
}

.auth-tab:focus-visible,
.auth-submit:focus-visible,
.auth-field input:focus-visible {
  outline: 3px solid rgba(108, 72, 94, 0.42);
  outline-offset: 3px;
}

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

.auth-form[hidden] {
  display: none;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: #4e3241;
  font: inherit;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(122, 87, 105, 0.18);
  border-radius: 8px;
  transition: border-color 180ms ease, background 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(122, 87, 105, 0.5);
}

.auth-field input:focus {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(139, 94, 118, 0.5);
}

.auth-submit {
  min-height: 46px;
  margin-top: 4px;
  color: #fffaf8;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  background: #8b5e76;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(99, 65, 91, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(99, 65, 91, 0.3);
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.62;
  transform: none;
}

.auth-submit--ghost {
  color: #6b4d5f;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(122, 87, 105, 0.2);
  box-shadow: none;
}

.auth-hint,
.auth-message {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

.auth-hint {
  color: var(--muted);
  text-align: center;
}

.auth-message {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #7c3b4c;
  font-weight: 700;
  background: rgba(255, 226, 232, 0.72);
  border: 1px solid rgba(214, 143, 162, 0.42);
  border-radius: 8px;
}

.auth-message[hidden] {
  display: none;
}

.auth-message.is-ok {
  color: #3f6b52;
  background: rgba(219, 245, 228, 0.72);
  border-color: rgba(127, 190, 155, 0.44);
}

.pending-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.pending-card h2 {
  margin: 0;
  color: #4f3342;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.pending-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.75;
}

.pending-icon {
  font-size: 2.6rem;
}

.login-footer {
  text-align: center;
}

@media (max-width: 640px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}