.auth-main {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.auth-card {
  width: min(470px, 100%);
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-xl);
}

.auth-card h2 {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 2.8rem;
}

.toggle-password {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
}

.form-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.password-strength {
  margin-top: 0.5rem;
}

.password-strength-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  overflow: hidden;
}

.password-strength-bar {
  width: 0;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-base), background var(--transition-base);
}

.password-strength-text {
  margin-top: 0.35rem;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.form-footer {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.error-message,
.success-message {
  display: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.95rem;
  font-size: var(--text-sm);
}

.error-message {
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.14);
}

.success-message {
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.85s linear infinite;
  display: none;
}

.btn-row {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.forgot-password {
  margin-top: 0.5rem;
  text-align: right;
  font-size: var(--text-xs);
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }
}
