/**
 * ============================================
 * REGULATED LOGIN & REGISTER PAGE STYLES
 * ============================================
 * Custom styles for the login and register pages.
 * Colors are set based on corporate identity.
 * Load after corporate-colors.css
 */

/* ==========================================
   LOGIN SECTION - MAIN CONTAINER
   ========================================== */
.login-section {
  padding: 60px 0;
  min-height: calc(100vh - 350px);
}

.login-wrapper {
  margin: 0 auto;
}

.loginbox {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.login-auth {
  padding: 0;
}

.login-auth-wrap {
  padding: 40px 30px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
.login-section h2 {
  color: #28283c;
  font-weight: 600;
}

.login-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #28283c;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.login-section .form-label {
  font-weight: 500;
  color: #28283c;
  margin-bottom: 8px;
  font-size: 14px;
}

.login-section .text-muted {
  font-size: 13px;
  color: #6c757d !important;
}

/* ==========================================
   INPUT ICON STYLES
   ========================================== */
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #757575;
  font-size: 14px;
  z-index: 5;
}

/* ==========================================
   FORM CONTROLS
   ========================================== */
.login-section .form-control,
.login-section .form-select {
  height: 48px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-section textarea.form-control {
  height: auto;
  min-height: 100px;
}

.login-section .form-control:focus,
.login-section .form-select:focus {
  border-color: #022C5F;
  box-shadow: 0 0 0 0.2rem rgba(2, 44, 95, 0.15);
  outline: none;
}

.login-section .form-control.is-invalid {
  border-color: #dc3545;
}

.login-section .form-control.is-valid {
  border-color: #28a745;
}

.login-section .ps-5 {
  padding-left: 45px !important;
}

/* ==========================================
   PASSWORD TOGGLE ICON
   ========================================== */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #757575;
}

/* ==========================================
   BUTTONS
   ========================================== */
.login-section .btn-primary {
  background: linear-gradient(135deg, #022C5F 0%, #0364ae 100%);
  border: none;
  padding: 14px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
  height: 48px;
}

.login-section .btn-primary:hover {
  background: linear-gradient(135deg, #0364ae 0%, #022C5F 100%);
  box-shadow: 0 5px 15px rgba(2, 44, 95, 0.3);
  transform: translateY(-2px);
}

/* Register page specific button style */
.login-section .btn-primary.w-100 {
  height: 50px;
  margin-top: 1rem;
}

/* ==========================================
   LINKS
   ========================================== */
.login-section a {
  transition: all 0.3s;
}

.login-section a:hover {
  color: #0364ae !important;
}

/* ==========================================
   CHECKBOX STYLES
   ========================================== */
.login-section .form-check {
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.login-section .form-check.d-inline-block {
  padding-left: 1.5rem;
}

.login-section .form-check-input {
  margin-top: 0.25rem;
}

.login-section .form-check-input:checked {
  background-color: #022C5F;
  border-color: #022C5F;
}

.login-section .form-check-label {
  font-size: 14px;
  color: #666;
}

/* ==========================================
   VALIDATION STATES
   ========================================== */
.login-section .invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 0.375rem;
}

/* ==========================================
   LAYOUT SPACING
   ========================================== */
.login-section .mb-2 {
  margin-bottom: 1rem !important;
}

.login-section .row {
  margin-left: -8px;
  margin-right: -8px;
}

.login-section .row > [class*='col-'] {
  padding-left: 8px;
  padding-right: 8px;
}

/* ==========================================
   RESPONSIVE - TABLETS
   ========================================== */
@media (max-width: 767.98px) {
  .login-section {
    padding: 40px 0;
    min-height: auto;
  }

  .login-auth-wrap {
    padding: 30px 20px;
  }

  .login-section h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 575.98px) {
  .login-section {
    padding: 20px 0;
  }

  .login-auth-wrap {
    padding: 25px 15px;
  }

  .login-section .row > [class*='col-'] {
    margin-bottom: 0.5rem;
  }
}
