/* Login page specific styles */

.login-illustration {
  max-width: 80%;
  height: auto;
}

.login-form-container {
  width: 572px;
  height: 733px;
  max-width: 500px; /* Updated max-width for login form container */
}

.login-card {
  border-radius: 1.5rem;
  padding: 1.25rem 0.9375rem 1.25rem 0.9375rem;
  background-color: #fafafa;
}

.login-button {
  width: 140px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 0.375rem;
  padding: 0 0.8125rem;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}

/* Logo styling */
.login-logo {
  max-height: 80px;
}

/* =====================================================
   REGISTRATION FORM STYLES
   ===================================================== */

.register-form-container {
  width: 100%;
  max-width: 1057px;
  min-height: 880px;
  padding: 0 1rem;
  position: relative; /* Added for decorative element positioning */
}

.register-card {
  border-radius: 1.5rem;
  background: white;
  width: 100%;
  min-height: 880px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-card .card-body {
  width: 100%;
  max-width: 916px;
  min-height: 697px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo placeholder styling */
.register-logo-placeholder {
  font-size: 14px;
  font-weight: 500;
  color: var(--shaalt-primary-600);
  display: inline-block;
  margin-bottom: 20px;
}

.register-logo {
  max-height: 80px;
}

.register-header {
  text-align: center;
  margin-bottom: 24px;
}

.register-card h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1f2937;
}

.register-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.5;
}

.register-footer {
  text-align: center;
  margin-top: 24px;
}

.register-submit-wrapper {
  text-align: center;
  margin-top: 24px;
}

.register-button {
  width: 140px;
  height: 40px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Decorative elements positioning - Relative to form container */
.register-decorative-line-top {
  position: absolute;
  top: 2rem;
  left: -9rem;
  z-index: 1;
  width: 270px;
  height: auto;
}

.register-decorative-circle-top {
  position: absolute;
  top: -3rem;
  right: -1rem;
  width: 105px;
  height: 105px;
  z-index: 1;
}

.register-decorative-line-bottom {
  position: absolute;
  bottom: 1rem;
  right: -9rem;
  z-index: 1;
  width: 270px;
  height: auto;
}

.register-decorative-circle-bottom {
  position: absolute;
  bottom: -1rem;
  left: 1rem;
  width: 43px;
  height: 43px;
  z-index: 1;
}

.register-card .form-control,
.register-card .form-select {
  width: 100%;
  height: 48px;
  border: 1px solid #e1e5e9;
  border-radius: 0.375rem;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  background: #fafafa;
}

.register-form-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.register-card .form-row {
  display: flex;
  gap: 40px;
  margin-bottom: 0;
}

.register-card .form-col {
  flex: 1;
  min-width: 0;
  margin-bottom: 1rem; /* Form spacing */
}

.register-card .form-col-full {
  width: 100%;
  flex: none;
}

.register-card .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* Revenue dropdown full width */
.register-card .revenue-select {
  width: 100%;
}

/* Custom dropdown wrapper with arrow */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-wrapper .form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background: white;
}

.custom-arrow-area {
  position: absolute;
  right: 0.5%;
  top: 2%;
  width: 50px;
  height: 46px;
  background: #f8f9fa;
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.custom-arrow-icon {
  width: 24px;
  height: 24px;
}

/* Focus state for custom dropdown */
.custom-select-wrapper .form-select:focus {
  border-color: var(--shaalt-primary-500);
  box-shadow: 0 0 0 0.2rem rgba(30, 23, 90, 0.15);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */

/* Large screens (desktops) */
@media (min-width: 1200px) {
  .register-form-container {
    padding: 0 2rem;
  }
}

/* Medium screens (tablets) */
@media (max-width: 991.98px) {
  .register-form-container {
    padding: 0 1rem;
  }

  .register-card {
    padding: 1rem;
    height: auto;
  }

  .register-card .card-body {
    height: auto;
    padding: 1rem 0;
  }

  .register-form-wrapper {
    gap: 1.5rem;
  }

  .register-card .form-row {
    gap: 1rem;
  }

  /* Adjust decorative elements for tablets */
  .register-decorative-line-top,
  .register-decorative-line-bottom {
    width: 80px;
  }

  .register-decorative-circle-top,
  .register-decorative-circle-bottom {
    width: 60px;
    height: 60px;
  }
}

/* Small screens (mobile) */
@media (max-width: 767.98px) {
  .register-form-container {
    padding: 0 0.5rem;
  }

  .register-card {
    padding: 0.75rem;
    border-radius: 1rem;
  }

  .register-card .card-body {
    padding: 0.5rem 0;
  }

  .register-header {
    margin-bottom: 1.5rem;
  }

  .register-card h1 {
    font-size: 20px;
  }

  .register-card p {
    font-size: 13px;
  }

  .register-form-wrapper {
    gap: 1rem;
  }

  .register-card .form-row {
    flex-direction: column;
    gap: 0;
  }

  .register-footer {
    margin-top: 1.5rem;
  }

  /* Hide decorative elements on mobile */
  .register-decorative-line-top,
  .register-decorative-circle-top,
  .register-decorative-line-bottom,
  .register-decorative-circle-bottom {
    display: none !important;
  }

  /* Mobile form spacing */
  .register-card .form-col {
    margin-bottom: 1rem;
  }

  .register-card .form-row .form-col:last-child {
    margin-bottom: 0;
  }
}

/* Extra small screens */
@media (max-width: 575.98px) {
  .register-form-container {
    padding: 0 0.25rem;
  }

  .register-card {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }

  .register-card .form-control,
  .register-card .form-select {
    height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .custom-arrow-area {
    width: 44px;
    height: 42px;
  }

  .custom-arrow-icon {
    width: 20px;
    height: 20px;
  }
}
