/* SIGNUP PAGE */

.signup-page {
  background: linear-gradient(135deg, #f8f9fc 0%, #e8eef7 100%);
  min-height: 100vh;
  padding: 20px 0;
}

.signup-section {
  padding: 30px 0;
}

.signup-container {
  background: white;
  border-radius: 16px;
  padding: 45px 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.6s ease;
  margin-bottom: 30px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.signup-header {
  text-align: center;
  margin-bottom: 35px;
}

.signup-header h2 {
  font-size: 32px;
  font-weight: 900;
  color: #0b2f59;
  margin-bottom: 10px;
}

.signup-header p {
  font-size: 15px;
  color: #6c757d;
}

/* Form Sections */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e9f2;
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section-title {
  font-size: 18px;
  font-weight: 900;
  color: #0b2f59;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #e2a02b, #cf8507);
  border-radius: 2px;
}

/* Account Type Selector */
.account-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.account-type-card {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.account-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-type-card .card-content {
  border: 2px solid #e5e9f2;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
}

.account-type-card .card-content svg {
  color: #6c757d;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.account-type-card .card-content h4 {
  font-size: 16px;
  font-weight: 900;
  color: #0b2f59;
  margin-bottom: 6px;
}

.account-type-card .card-content p {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}

.account-type-card:hover .card-content {
  border-color: #0a3c72;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(10, 60, 114, 0.15);
}

.account-type-card.selected .card-content {
  border-color: #0a3c72;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
  box-shadow: 0 4px 12px rgba(10, 60, 114, 0.2);
}

.account-type-card.selected .card-content svg {
  color: #0a3c72;
}

.account-type-card.selected .card-content::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: #0a3c72;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

/* Form Groups */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0b2f59;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e9f2;
  border-radius: 8px;
  font-size: 14px;
  color: #0b2f59;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0a3c72;
  background: #f8f9fc;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

/* Password Field */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.toggle-password:hover {
  transform: translateY(-50%) scale(1.1);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

/* Password Strength */
.password-strength {
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.password-strength.weak {
  background: #fee;
  color: #dc3545;
}

.password-strength.medium {
  background: #fff3cd;
  color: #856404;
}

.password-strength.good {
  background: #d1ecf1;
  color: #0c5460;
}

.password-strength.strong {
  background: #d4edda;
  color: #155724;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #0b2f59;
  margin: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #0a3c72;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label span {
  line-height: 1.5;
}

.checkbox-label a {
  color: #0a3c72;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.checkbox-label a:hover {
  color: #e6a01b;
}

/* Terms Agreement */
.terms-agreement {
  background: #f8f9fc;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #e5e9f2;
}

/* Submit Button */
.btn-signup {
  width: 100%;
  background: linear-gradient(135deg, #e2a02b, #cf8507);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(230, 160, 27, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 160, 27, 0.4);
}

.btn-signup:active {
  transform: translateY(0);
}

.btn-signup.loading {
  background: #6c757d;
  cursor: not-allowed;
}

.btn-signup.success {
  background: #28a745;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 25px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e9f2;
}

.divider span {
  position: relative;
  background: white;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}

/* Social Signup */
.social-signup {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.btn-social {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e5e9f2;
  border-radius: 8px;
  background: white;
  color: #0b2f59;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-social:hover {
  border-color: #0a3c72;
  background: #f8f9fc;
  transform: translateY(-2px);
}

.btn-google {
  color: #db4437;
}

.btn-google:hover {
  border-color: #db4437;
  background: #fef5f4;
}

.btn-facebook {
  color: #1877f2;
}

.btn-facebook:hover {
  border-color: #1877f2;
  background: #f0f7ff;
}

/* Login Link */
.login-link {
  text-align: center;
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.login-link a {
  color: #0a3c72;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #e6a01b;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .signup-container {
    padding: 40px 35px;
  }

  .account-type-selector {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-type-card .card-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
  }

  .account-type-card .card-content svg {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .social-signup {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .signup-section {
    padding: 20px 0;
  }

  .signup-container {
    padding: 35px 25px;
  }

  .signup-header h2 {
    font-size: 28px;
  }

  .signup-header p {
    font-size: 14px;
  }

  .section-title {
    font-size: 16px;
  }

  .form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .signup-container {
    padding: 30px 20px;
    border-radius: 12px;
  }

  .signup-header h2 {
    font-size: 26px;
  }

  .signup-header {
    margin-bottom: 30px;
  }

  .account-type-card .card-content {
    padding: 18px;
  }

  .account-type-card .card-content svg {
    width: 35px;
    height: 35px;
  }

  .account-type-card .card-content h4 {
    font-size: 15px;
  }

  .account-type-card .card-content p {
    font-size: 12px;
  }

  .form-group input,
  .form-group select {
    padding: 11px 14px;
    font-size: 14px;
  }

  .btn-signup {
    padding: 14px 20px;
    font-size: 15px;
  }

  .btn-social {
    padding: 11px 16px;
    font-size: 13px;
  }
}
