/* ============================================
   SVASTHA ONLINE - REGISTER PAGE STYLES
   ============================================ */

/* CSS Custom Properties (matching main stylesheet) */
:root {
  --color-teal-500: #14b8a6;
  --color-teal-600: #0d9488;
  --color-teal-700: #0f766e;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-purple-500: #a855f7;
  --color-pink-500: #ec4899;
  --color-orange-500: #f97316;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-blue-800: #1e3a8a;
  --color-indigo-500: #6366f1;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-white: #ffffff;
  --color-black: #000000;
}

/* ============================================
   SIGN UP FORM SECTION
   ============================================ */
.sign-up-form {
  background: linear-gradient(to bottom, var(--color-gray-50), var(--color-white));
  min-height: calc(100vh - 114px);
  padding: 3rem 0 !important;
}

.sign-up-form .container.bg-main {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  padding: 3rem !important;
  animation: fadeInUp 0.6s ease-out;
}

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


/* ============================================
   FORM HEADER & ALERTS
   ============================================ */
.register-form {
  width: 100%;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid var(--color-emerald-500);
  border-radius: 12px;
  color: var(--color-gray-800);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}


/* ============================================
   FORM LABELS & HEADINGS
   ============================================ */
.register-form h6,
.register-form label {
  color: var(--color-gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.01em;
}

.register-form .form-label {
  color: var(--color-gray-900);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}


/* ============================================
   FORM INPUTS & SELECTS
   ============================================ */
.register-form .form-control,
.register-form .form-select {
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--color-gray-200);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  transition: all 0.3s ease;
  height: auto;
  line-height: 1.5;
}

.register-form .form-control:focus,
.register-form .form-select:focus {
  border-color: var(--color-teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
  outline: none;
  background-color: var(--color-white);
}

.register-form .form-control:hover,
.register-form .form-select:hover {
  border-color: var(--color-gray-300);
}

.register-form .form-control::placeholder {
  color: var(--color-gray-400);
  font-size: 0.9rem;
}

/* Date Input Specific Styles */
.register-form input[type="date"] {
  cursor: pointer;
}

.register-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: opacity(0.6);
  transition: filter 0.3s ease;
}

.register-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  filter: opacity(1);
}


/* ============================================
   PASSWORD INPUT WITH TOGGLE ICON
   ============================================ */
.register-form .position-relative .toggle-password {
  color: var(--color-gray-500);
  font-size: 1.1rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.register-form .position-relative .toggle-password:hover {
  color: var(--color-teal-500);
}


/* ============================================
   FORM SELECT DROPDOWN
   ============================================ */
.register-form .form-select {
  cursor: pointer;
  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='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 3rem;
}

.register-form .form-select:disabled {
  background-color: var(--color-gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

.register-form .form-select option {
  padding: 0.75rem;
  color: var(--color-gray-900);
}


/* ============================================
   ERROR MESSAGES
   ============================================ */
.text-danger {
  color: var(--color-red-600);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--color-red-500);
}


/* ============================================
   INPUT SPACING & CONTAINERS
   ============================================ */
.input-item {
  margin-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}


/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-buttons.register {
  margin-top: 2rem;
  text-align: center;
}

.submit-buttons.register .theme-btn-1 {
  padding: 1rem 3rem;
  background: linear-gradient(
    to right,
    var(--color-teal-500),
    var(--color-emerald-500)
  );
  border: none;
  border-radius: 50px;
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.submit-buttons.register .theme-btn-1:hover {
  box-shadow: 0 15px 35px rgba(20, 184, 166, 0.4);
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(
    to right,
    var(--color-teal-600),
    var(--color-emerald-600)
  );
}

.submit-buttons.register .theme-btn-1:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

.submit-buttons.register .theme-btn-1:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Devices */
@media (max-width: 991.98px) {
  .sign-up-form .container.bg-main {
    padding: 2.5rem 2rem !important;
  }

  .submit-buttons.register .theme-btn-1 {
    font-size: 1rem;
    padding: 0.875rem 2.5rem;
  }
}

/* Mobile Devices */
@media (max-width: 767.98px) {
  .sign-up-form {
    padding: 2rem 0 !important;
  }

  .sign-up-form .container.bg-main {
    padding: 2rem 1.5rem !important;
    border-radius: 16px;
    margin: 0 1rem;
  }

  .breadcrumbs {
    padding: 1rem 0;
  }

  .register-form h6,
  .register-form label,
  .register-form .form-label {
    font-size: 0.9rem;
  }

  .register-form .form-control,
  .register-form .form-select {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .submit-buttons.register {
    margin-top: 1.5rem;
  }

  .submit-buttons.register .theme-btn-1 {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
  }

  .register-form .position-relative .toggle-password {
    right: 15px !important;
    top: 48px !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 575.98px) {
  .sign-up-form .container.bg-main {
    padding: 1.5rem 1rem !important;
    margin: 0 0.5rem;
  }

  .breadcrumb-item {
    font-size: 0.85rem;
  }

  .register-form h6,
  .register-form label,
  .register-form .form-label {
    font-size: 0.85rem;
  }

  .register-form .form-control,
  .register-form .form-select {
    padding: 0.7rem 0.875rem;
    font-size: 0.875rem;
  }

  .text-danger {
    font-size: 0.8rem;
  }

  .alert-success {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}


/* ============================================
   FORM VALIDATION STATES
   ============================================ */
/* .register-form .form-control:invalid:not(:placeholder-shown) {
  border-color: var(--color-red-500);
} */

.register-form .form-control:valid:not(:placeholder-shown) {
  border-color: var(--color-emerald-500);
}

.register-form .form-control:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.register-form .form-control:valid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}


/* ============================================
   LOADING STATE (OPTIONAL)
   ============================================ */
.submit-buttons.register .theme-btn-1:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.submit-buttons.register .theme-btn-1.loading {
  position: relative;
  color: transparent;
}

.submit-buttons.register .theme-btn-1.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid var(--color-white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}


/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
.register-form .form-control:focus-visible,
.register-form .form-select:focus-visible,
.submit-buttons.register .theme-btn-1:focus-visible {
  outline: 3px solid var(--color-teal-500);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sign-up-form .container.bg-main,
  .register-form .form-control,
  .register-form .form-select,
  .submit-buttons.register .theme-btn-1,
  .register-form .position-relative .toggle-password {
    animation: none;
    transition: none;
  }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-left {
  text-align: left !important;
}

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}


/* ============================================
   COUNTRY/STATE/CITY DROPDOWN ENHANCEMENTS
   ============================================ */
.register-form .form-select.country,
.register-form .form-select.state,
.register-form .form-select.city {
  background-color: var(--color-white);
  position: relative;
}

.register-form .form-select.country:focus,
.register-form .form-select.state:focus,
.register-form .form-select.city:focus {
  border-color: var(--color-teal-500);
}

/* Loading indicator for dropdowns (optional) */
.register-form .form-select.loading {
  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='%2314b8a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 2 L8 6 M8 10 L8 14 M2 8 L6 8 M10 8 L14 8'/%3e%3c/svg%3e") !important;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}


/* ============================================
   ADDITIONAL POLISH
   ============================================ */

/* Add subtle animation to form fields on focus */
/* .register-form .form-control:focus,
.register-form .form-select:focus {
  animation: pulse 0.3s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
} */

/* Smooth transition for password visibility toggle */
.register-form input[type="password"],
.register-form input[type="text"] {
  transition: all 0.3s ease;
}

/* Add hover effect to labels */
/* .register-form label:hover,
.register-form h6:hover {
  color: var(--color-teal-600);
  transition: color 0.2s ease;
} */