/* Register Page Styles - Extends login.css */
@import url("login.css");

.register-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.register-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.register-box {
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 800px;
  margin: 20px 0;
}

.register-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.register-form-header h3 {
  color: #1e3c72;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.register-form-header h3 i {
  margin-right: 10px;
}

.register-form-header p {
  color: #666;
  font-size: 14px;
}

/* Form Steps */
.form-steps {
  position: relative;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
  display: block;
}

.form-step h4 {
  color: #1e3c72;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e1e5e9;
}

.form-step h4 i {
  margin-right: 10px;
}

/* Form Layout */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group label i {
  margin-right: 8px;
  color: #1e3c72;
  width: 16px;
}

.required {
  color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3c72;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio Buttons */
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #1e3c72;
  background: #1e3c72;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-weight: normal;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  margin-right: 10px;
  margin-top: 2px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: inline-block;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  border-color: #1e3c72;
  background: #1e3c72;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: white;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Password Input */
.password-input {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.toggle-password:hover {
  color: #1e3c72;
}

/* Validation Messages */
.validation-message {
  font-size: 12px;
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  display: none;
}

.validation-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.validation-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.validation-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  display: block;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-prev {
  background: #6c757d;
  color: white;
}

.btn-prev:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-next {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.btn-submit {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  font-size: 16px;
  padding: 15px 30px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e1e5e9;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: #e1e5e9;
  z-index: 1;
}

.progress-step.active:not(:last-child)::after {
  background: #1e3c72;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e1e5e9;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #1e3c72;
  color: white;
}

.step-label {
  font-size: 12px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.progress-step.active .step-label {
  color: #1e3c72;
  font-weight: 600;
}

/* Register Footer */
.register-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
}

.login-link {
  text-align: center;
  margin-bottom: 20px;
}

.login-link p {
  color: #666;
  font-size: 14px;
}

.login-link a {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

.help-section h4 {
  color: #1e3c72;
  font-size: 16px;
  margin-bottom: 15px;
}

.help-section h4 i {
  margin-right: 8px;
}

.help-section ul {
  list-style: none;
  padding: 0;
}

.help-section li {
  color: #666;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.help-section li i {
  margin-right: 10px;
  color: #1e3c72;
  width: 16px;
}

/* Error Text */
.error-text {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .register-box {
    padding: 20px;
    margin: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group {
    margin-bottom: 20px;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .step-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .progress-bar {
    flex-direction: column;
    gap: 10px;
  }

  .progress-step:not(:last-child)::after {
    display: none;
  }

  .step-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .register-content {
    padding: 10px;
  }

  .register-box {
    padding: 15px;
  }

  .register-form-header h3 {
    font-size: 20px;
  }

  .form-step h4 {
    font-size: 16px;
  }
}
