/* ============================================
   PUBLIC PAGES - AUTH STYLES
   ============================================ */

/* ============================================
   BOOTSTRAP COMPONENT OVERRIDES (PUBLIC)
   ============================================ */

/* Primary Button */
.btn-primary {
  --bs-btn-color: var(--text-inverse);
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--text-inverse);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-focus-shadow-rgb: 255, 107, 53;
  --bs-btn-active-color: var(--text-inverse);
  --bs-btn-active-bg: var(--color-primary-active);
  --bs-btn-active-border-color: var(--color-primary-active);
  --bs-btn-disabled-color: var(--text-inverse);
  --bs-btn-disabled-bg: var(--color-gray-300);
  --bs-btn-disabled-border-color: var(--color-gray-300);
}

/* Outline Button */
.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--text-inverse);
  --bs-btn-hover-bg: var(--color-primary);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-active-color: var(--text-inverse);
  --bs-btn-active-bg: var(--color-primary-active);
  --bs-btn-active-border-color: var(--color-primary-active);
  --bs-btn-focus-shadow-rgb: 255, 107, 53;
}

/* Form Control Focus States */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus-primary);
}

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

/* Text Color */
.text-primary {
  color: var(--color-primary) !important;
}

/* Link Colors */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */
.login-container {
  background-color: var(--bg-primary);
}

.login-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.login-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.login-form {
  background-color: var(--bg-primary);
}

/* Login Form Styling */
.login-form .form-label {
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.login-form .form-control,
.login-form .input-group-text {
  border-color: var(--color-gray-300);
  background-color: white;
  font-size: 0.95rem;
}

.login-form .form-control {
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-control:focus {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.1);
}

.login-form .input-group-text {
  border: 1px solid var(--color-gray-200);
  background-color: white;
  color: var(--text-tertiary);
}

.login-form .input-group .form-control {
  border-left: none;
}

.login-form .input-group .form-control:focus {
  border-color: var(--color-primary);
}

.login-form .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  border-color: var(--color-gray-300);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

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

.login-form .form-check-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.1);
}

.login-form .form-check-label {
  color: var(--text-secondary);
  user-select: none;
  cursor: pointer;
  font-weight: 400;
}

.login-form .btn-primary {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.form-floating > label {
  color: var(--text-quaternary);
}


/* Responsive Login */
@media (max-width: 991.98px) {
  .login-container {
    min-height: auto;
  }

  .login-form {
    min-height: 100vh;
  }

  .login-hero {
    display: none !important;
  }
}
