.page-gradient {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(30, 75, 43, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.12));
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  position: fixed;
  width: min(960px, 92%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}

.theme-toggle:hover {
  background: rgba(148, 163, 184, 0.2);
}

.auth-card {
  display: grid;
  gap: 2rem;
}

.auth-headline {
  display: grid;
  gap: 0.25rem;
}

.auth-headline h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0;
  color: var(--color-primary);
}

.auth-headline p {
  color: var(--color-text-muted);
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 1.35rem;
}

.form-actions {
  display: grid;
  gap: 1rem;
}

.form-footer {
  text-align: center;
  color: var(--color-text-muted);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  flex: 1;
  min-width: 150px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.08);
}

.input-group {
  display: grid;
  gap: 0.5rem;
}

.password-strength {
  display: flex;
  gap: 0.35rem;
}

.password-strength span {
  flex: 1;
  height: 6px;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  transition: background 200ms ease;
}

.password-strength span.active {
  background: var(--color-primary);
}

.page-footer {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  gap: 0.75rem;
  z-index: 200;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: grid;
  gap: 0.5rem;
  animation: toast-in 200ms ease forwards;
}

.toast-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.toast-error {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.toast-info {
  background: rgba(2, 132, 199, 0.12);
  color: #0f172a;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}
