/* Страницы входа / регистрации */
.auth-page .main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(35, 40, 45, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}

.auth-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.auth-messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.auth-messages__item {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.auth-messages__item--error {
  background: rgba(220, 80, 80, 0.2);
  color: #f0a0a0;
}

.auth-messages__item--success {
  background: rgba(5, 184, 125, 0.2);
  color: var(--green);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-input {
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 1rem;
}

[data-theme="light"] .auth-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.auth-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(5, 184, 125, 0.2);
}

.auth-submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--green);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.auth-submit:hover {
  filter: brightness(1.08);
}

.auth-footer {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--green);
  font-weight: 500;
}
