/* Register Page Styles */
.register-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 50%, #9c27b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
}

.register-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

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

.form-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.back-button {
  position: absolute;
  left: 0;
  top: 0;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.2s;
}

.back-button:hover {
  transform: translateX(-5px);
}

.header-content {
  margin-top: 20px;
}

.header-icon {
  font-size: 80px;
  color: white;
  margin-bottom: 20px;
}

.form-header h1 {
  color: white;
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.form-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin: 0;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section h3 {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 20px 0;
  text-align: center;
  position: relative;
}

.form-section h3::before,
.form-section h3::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.form-section h3::before {
  left: 0;
}

.form-section h3::after {
  right: 0;
}

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

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  z-index: 2;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 15px 15px 15px 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: white;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
  padding-top: 15px;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.register-btn {
  width: 100%;
  padding: 16px;
  background: white;
  color: #4a148c;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.register-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #4a148c;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-link {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 16px;
  margin-top: 20px;
  transition: color 0.3s ease;
}

.login-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Error states */
.input-group input.error,
.input-group select.error,
.input-group textarea.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.error-message {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Success states */
.input-group input.success,
.input-group select.success,
.input-group textarea.success {
  border-color: #51cf66;
  box-shadow: 0 0 0 3px rgba(81, 207, 102, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .register-container {
    padding: 15px;
  }
  
  .register-form {
    padding: 30px 20px;
    margin: 10px;
    border-radius: 15px;
  }
  
  .form-header h1 {
    font-size: 28px;
  }
  
  .header-icon {
    font-size: 60px;
  }
  
  .form-section {
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .form-section h3 {
    font-size: 16px;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 12px 12px 12px 40px;
    font-size: 14px;
    border-radius: 12px;
  }
  
  .register-btn {
    padding: 14px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .register-container {
    padding: 10px;
  }
  
  .register-form {
    padding: 25px 15px;
    border-radius: 12px;
  }
  
  .form-header h1 {
    font-size: 24px;
  }
  
  .header-icon {
    font-size: 50px;
  }
  
  .form-section {
    padding: 15px 10px;
    border-radius: 10px;
  }
  
  .form-section h3 {
    font-size: 14px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 12px;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 10px 10px 10px 35px;
    font-size: 13px;
    border-radius: 10px;
  }
  
  .input-group i {
    left: 12px;
    font-size: 14px;
  }
  
  .register-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 25px;
  }
  
  .login-link {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .register-container {
    padding: 5px;
  }
  
  .register-form {
    padding: 20px 10px;
  }
  
  .form-header h1 {
    font-size: 22px;
  }
  
  .header-icon {
    font-size: 45px;
  }
  
  .form-section {
    padding: 12px 8px;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 8px 8px 8px 30px;
    font-size: 12px;
  }
  
  .input-group i {
    left: 10px;
    font-size: 12px;
  }
}

/* Custom scrollbar for select dropdowns */
.input-group select::-webkit-scrollbar {
  width: 8px;
}

.input-group select::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.input-group select::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.input-group select::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Hidden referral code - no styles needed */ 