/* Auth Pages (Login & Register) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 15px 50px;
  background: radial-gradient(circle at 50% 50%, var(--secondary-navy) 0%, var(--primary-navy) 100%);
}

.auth-container {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  z-index: 10;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--royal-gold);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--royal-gold);
}

.auth-header h2 {
  color: var(--soft-gold);
  margin-bottom: 10px;
}

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

.slide-group {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.slide-group.active {
  max-height: 140px;
  opacity: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--soft-white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-gold);
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(212, 166, 79, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.light-mode .auth-page {
  background: radial-gradient(circle at 50% 50%, #f7f3eb 0%, #f1eadb 100%);
}

.light-mode .auth-logo {
  border-color: var(--royal-gold);
  color: var(--royal-gold);
}

.light-mode .form-group label {
  color: var(--text-primary);
}

.light-mode .form-control {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(115, 130, 148, 0.35);
  color: var(--text-primary);
}

.light-mode .form-control:focus {
  outline: none;
  border-color: var(--royal-gold);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 12px rgba(74, 95, 127, 0.18);
}

.light-mode .form-control::placeholder {
  color: rgba(74, 95, 127, 0.55);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23D4A64F%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: left 20px center;
  background-size: 12px auto;
}

select.form-control option {
  background: var(--primary-navy);
  color: var(--soft-white);
}

.btn-block {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin-top: 10px;
}

.btn-green {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer a {
  color: var(--royal-gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.auth-footer a:hover {
  color: var(--soft-gold);
  text-decoration: underline;
}

/* Multi-step Form */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

.step {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary-navy);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step.active {
  border-color: var(--royal-gold);
  background: var(--royal-gold);
  color: var(--primary-navy);
  box-shadow: 0 0 15px rgba(212, 166, 79, 0.5);
}

.step.completed {
  border-color: #2ecc71;
  background: #2ecc71;
  color: white;
}

.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.helper-text {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-top: 5px;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Login Modal Specific */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 19, 38, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 100%;
  max-width: 450px;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
  background: none;
  border: none;
}

.close-modal:hover {
  color: var(--royal-gold);
}
