* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1510;
  color: #e8e0d4;
  overflow: hidden;
}

/* Animated background orbs — warm library tones */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

body::before {
  width: 400px;
  height: 400px;
  background: #8B5E34;
  top: -100px;
  left: -100px;
}

body::after {
  width: 350px;
  height: 350px;
  background: #6B4226;
  bottom: -80px;
  right: -80px;
  animation-delay: 4s;
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.card {
  background: rgba(60, 45, 30, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 90, 43, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #d4a06a, #c08040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo p {
  color: rgba(232, 224, 212, 0.5);
  font-size: 14px;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 224, 212, 0.6);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 90, 43, 0.25);
  border-radius: 12px;
  color: #e8e0d4;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(232, 224, 212, 0.25);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(212, 160, 106, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(212, 160, 106, 0.1);
}

.form-group select option {
  background: #2a221a;
  color: #e8e0d4;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5E34, #6B4226);
  color: #f0e6d8;
  box-shadow: 0 4px 15px rgba(107, 66, 38, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9B6E44, #7B5236);
  box-shadow: 0 6px 20px rgba(107, 66, 38, 0.5);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.links {
  text-align: center;
  margin-top: 24px;
}

.links a {
  color: rgba(212, 160, 106, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.links a:hover {
  color: #d4a06a;
}

.links .separator {
  color: rgba(232, 224, 212, 0.2);
  margin: 0 12px;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  animation: slideIn 0.3s ease;
}

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

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* Step indicator for multi-step forms */
.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.step {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(139, 90, 43, 0.2);
  transition: background 0.3s;
}

.step.active {
  background: linear-gradient(135deg, #d4a06a, #8B5E34);
}

/* Password strength indicator */
.password-strength {
  height: 3px;
  border-radius: 2px;
  margin-top: 8px;
  transition: all 0.3s;
}

/* Hide step sections */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(240, 230, 216, 0.3);
  border-top-color: #f0e6d8;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .logo h1 {
    font-size: 24px;
  }
}
