/* MODERN SPECIALIST REGISTRATION FORM CSS */
:root {
  --blue-primary: oklch(0.6 0.2 250);
  --blue-secondary: oklch(0.55 0.15 245);
  --blue-light: oklch(0.8 0.1 250);
  --indigo-soft: oklch(0.65 0.12 270);
  --text-color: oklch(0.25 0.01 270);
  --text-grey: oklch(0.55 0.02 260);
  --background-light: oklch(0.98 0.005 270);
  --background-white: oklch(1 0 0);
  --border-light: oklch(0.9 0.01 270);
  --shadow-soft: oklch(0 0 0 / 0.08);
}

/* HERO SECTION - FORM HEADER */
.register-hero {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.08) 0%,
    rgba(99, 102, 241, 0.06) 50%,
    rgba(59, 130, 246, 0.04) 100%);
  padding: 60px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.register-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/assets/img/pattern.svg') repeat;
  opacity: 0.02;
  z-index: 1;
}

.register-hero .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 40px auto 0;
}

.register-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: oklch(54.6% 0.245 262.881);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.register-hero p {
  font-size: 18px;
  color: var(--text-grey);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0;
}

/* MAIN FORM CONTAINER */
.register-container {
  max-width: 1400px;
  margin: -30px auto 60px;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

.register-form {
  background: var(--background-white);
  border-radius: 24px;
  padding: 40px 50px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.register-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, oklch(54.6% 0.245 262.881), oklch(51.1% 0.262 276.966));
}

/* FORM SECTIONS */
.form-section {
  margin-bottom: 35px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 1px;
  background: var(--blue-primary);
}

/* MODERN FORM FIELDS */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  background: var(--background-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px oklch(0.6 0.2 250 / 0.1);
  transform: translateY(-1px);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--blue-light);
}

.form-control:disabled {
  background: var(--background-light);
  color: var(--text-grey);
  cursor: not-allowed;
}

/* CUSTOM SELECT STYLING */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 50px;
}

/* CHECKBOX STYLING */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--background-light);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.form-check:hover {
  background: oklch(0.96 0.01 270);
}

/* CHECKBOX CONTAINER - TWO COLUMNS */
.checkbox-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .checkbox-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  background: var(--background-white);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-check-input:checked {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.form-check-input:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.form-check-label {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.5;
  cursor: pointer;
}

.form-check-label a {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-check-label a:hover {
  color: var(--blue-secondary);
  text-decoration: underline;
}

/* SUBMIT BUTTON */
.submit-container {
  text-align: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border-light);
}

.submit-btn {
  background: linear-gradient(135deg, oklch(54.6% 0.245 262.881), oklch(51.1% 0.262 276.966));
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(139, 69, 198, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 180px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 69, 198, 0.4);
}

.submit-btn:hover::before {
  left: 100%;
}

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

/* ERROR MESSAGES */
.alert {
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: none;
}

.alert-danger {
  background: oklch(0.95 0.08 15);
  color: oklch(0.5 0.15 15);
  border-left: 4px solid oklch(0.6 0.2 15);
}

.alert-success {
  background: oklch(0.95 0.08 140);
  color: oklch(0.4 0.15 140);
  border-left: 4px solid oklch(0.6 0.2 140);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .register-hero {
    padding: 50px 30px 35px;
  }
  
  .register-hero h1 {
    font-size: 32px;
  }
  
  .register-hero p {
    font-size: 16px;
  }
  
  .register-container {
    padding: 0 30px;
    margin: -25px auto 50px;
  }
  
  .register-form {
    padding: 30px 25px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .section-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .register-hero {
    padding: 40px 20px 25px;
  }
  
  .register-hero .content {
    margin: 30px auto 0;
  }
  
  .register-hero h1 {
    font-size: 28px;
  }
  
  .register-hero p {
    font-size: 15px;
  }
  
  .register-container {
    padding: 0 20px;
    margin: -20px auto 40px;
  }
  
  .register-form {
    padding: 25px 20px;
    border-radius: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .form-control,
  .form-select {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .submit-btn {
    padding: 14px 35px;
    font-size: 15px;
    width: 100%;
  }
}

/* LOADING STATE */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* VALIDATION FEEDBACK */
.is-invalid {
  border-color: oklch(0.6 0.2 15) !important;
  box-shadow: 0 0 0 3px oklch(0.6 0.2 15 / 0.1) !important;
}

.is-valid {
  border-color: oklch(0.6 0.2 140) !important;
  box-shadow: 0 0 0 3px oklch(0.6 0.2 140 / 0.1) !important;
}

.invalid-feedback {
  color: oklch(0.5 0.15 15);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  display: block;
}

.valid-feedback {
  color: oklch(0.4 0.15 140);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  display: block;
}