/* Signup page — matches dwpofficial.net/signup */

body.signup-page {
  background: linear-gradient(180deg, #fbfcfd, #f6f7f9);
  min-height: 100vh;
  padding-top: 90px;
}

.signup-page-wrap {
  padding: 40px 20px 60px;
}

.signup-container {
  margin: 0 auto;
  max-width: 900px;
}

.form-card {
  background: #fff;
  border: 1px solid rgba(44, 51, 66, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(44, 51, 66, 0.12);
  margin-bottom: 2rem;
  padding: 3rem 40px;
  position: relative;
  z-index: 1;
}

.form-title {
  color: #ad7f4e;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.text-end {
  text-align: right;
}

.progress {
  background-color: #e5e7eb;
  border-radius: 8px;
  height: 6px;
  margin: 2rem 0;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, #ad7f4e, #2c3342);
  border-radius: 8px;
  height: 100%;
  transition: width 0.6s ease;
}

.step-indicator {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 1rem 1.5rem;
  position: relative;
}

.step-indicator::before {
  background: #e5e7eb;
  border-radius: 4px;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.step {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.step-number {
  align-items: center;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #6b7280;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 2.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.25s ease;
  width: 2.75rem;
}

.step.active .step-number {
  background: linear-gradient(135deg, #ad7f4e 0%, #2c3342 100%);
  border-color: #2c3342;
  box-shadow: 0 4px 15px rgba(173, 127, 78, 0.3);
  color: #fff;
  transform: scale(1.08);
}

.step.completed .step-number {
  background: #ad7f4e;
  border-color: #ad7f4e;
  color: #fff;
}

.step-label {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: all 0.25s ease;
}

.step.active .step-label,
.step.completed .step-label {
  color: #ad7f4e;
  font-weight: 700;
}

.form-step {
  animation: signupFadeIn 0.4s ease;
}

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

.form-section {
  margin-bottom: 2rem;
}

.section-title {
  border-bottom: 2px solid #cf9455;
  color: #2c3342;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1rem;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-label {
  align-items: center;
  color: #2c3342;
  display: flex;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: #2c3342;
  font-size: 1.1rem;
}

.form-control,
.form-select {
  appearance: none;
  background-color: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  color: #212529;
  display: block;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.75rem 0.875rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: 2.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #ad7f4e;
  box-shadow: 0 0 0 0.2rem rgba(173, 127, 78, 0.15);
  outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  color: #dc3545;
  display: block;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.password-input-wrapper {
  position: relative;
}

.password-input-wrapper .form-control {
  padding-right: 2.5rem;
}

.password-toggle-btn {
  align-items: center;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 2rem;
  justify-content: center;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
}

.form-check {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.form-check-input {
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: auto;
}

.form-check-label {
  color: #444;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.preview-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}

.preview-section h4 {
  color: #1a1f2e;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.preview-grid {
  display: grid;
  font-size: 14px;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
}

.preview-grid .full-span {
  grid-column: 1 / -1;
}

.alert {
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 12px 16px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.signup-nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.signup-btn-primary {
  align-items: center;
  background-color: #2c3342;
  border: 1px solid #2c3342;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(44, 51, 66, 0.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  transition: all 0.25s ease;
}

.signup-btn-primary:hover:not(:disabled) {
  background-color: #ad7f4e;
  border-color: #ad7f4e;
}

.signup-btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.signup-btn-secondary {
  align-items: center;
  background: #fff;
  border: 1px solid #2c3342;
  border-radius: 6px;
  color: #2c3342;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  transition: all 0.25s ease;
}

.signup-btn-secondary:hover {
  background: #f3f4f6;
}

.signup-btn-gold {
  background-color: #ad7f4e;
  border-color: #ad7f4e;
}

.signup-btn-gold:hover:not(:disabled) {
  background-color: #9a6d42;
  border-color: #9a6d42;
  box-shadow: 0 8px 20px rgba(173, 127, 78, 0.3);
}

@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem 1rem;
  }

  .form-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .step-indicator {
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    margin-bottom: 2rem;
  }

  .step-number {
    font-size: 0.85rem;
    height: 2.25rem;
    width: 2.25rem;
  }

  .step-label {
    font-size: 0.72rem;
  }

  .signup-nav-row {
    flex-direction: column;
    gap: 12px;
  }

  .signup-nav-row .signup-btn-primary,
  .signup-nav-row .signup-btn-secondary,
  .text-end .signup-btn-primary {
    width: 100%;
  }

  .text-end {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .form-card {
    padding: 1.25rem 0.875rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .step-label {
    display: none;
  }

  .step-number {
    height: 2rem;
    width: 2rem;
    font-size: 0.8rem;
  }

  .step-indicator {
    margin-bottom: 1.5rem;
  }
}
