/* ========================================
   AUTH PAGES CUSTOM STYLES
   Color Scheme: #669776 (Green Primary), #313a46 (Dark Secondary)
   ======================================== */

/* ========== Global Auth Page Styles ========== */
body.auth-body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.account-pages {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ========== Card Styling ========== */
.account-pages .card {
  border: none;
  box-shadow: 0 8px 24px rgba(49, 58, 70, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.account-pages .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(49, 58, 70, 0.18);
}

/* ========== Header Banner with New Colors ========== */
.bg-primary.bg-soft {
  background: linear-gradient(135deg, #669776 0%, #557d63 100%) !important;
  position: relative;
  overflow: hidden;
}

.bg-primary.bg-soft::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.bg-primary.bg-soft .text-primary {
  color: #ffffff !important;
}

.bg-primary.bg-soft h5.text-primary {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bg-primary.bg-soft p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

/* ========== Logo Styling ========== */
.auth-logo .avatar-title {
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(49, 58, 70, 0.15);
  transition: transform 0.3s ease;
}

.auth-logo:hover .avatar-title {
  transform: scale(1.05);
}

/* ========== Primary Button Styling ========== */
.btn-primary {
  background: linear-gradient(135deg, #669776 0%, #557d63 100%);
  border: none;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 151, 118, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #557d63 0%, #669776 100%);
  box-shadow: 0 6px 16px rgba(102, 151, 118, 0.4);
  transform: translateY(-2px);
}

/* ========== Text Colors ========== */
.text-primary,
a.text-primary {
  color: #669776 !important;
}

a.text-primary:hover {
  color: #557d63 !important;
  text-decoration: underline;
}

.fw-medium.text-primary {
  font-weight: 600;
}

/* ========== Form Controls ========== */
.form-control {
  border: 1.5px solid #e0e6ed;
  padding: 0.65rem 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.form-control:focus {
  border-color: #669776;
  box-shadow: 0 0 0 0.2rem rgba(102, 151, 118, 0.15);
}

.form-label {
  font-weight: 500;
  color: #313a46;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* ========== Helper Text & Hints ========== */
.form-hint {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
  display: block;
}

.form-hint i {
  margin-right: 4px;
  color: #669776;
}

/* ========== Security Badge ========== */
.security-badge {
  display: inline-flex;
  align-items: center;
  background: var(--PrimarySoft);
  border: 1px solid rgba(102, 151, 118, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #313a46;
}

.security-badge i {
  color: #669776;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.security-badge-text {
  font-weight: 500;
}

/* ========== Progress Indicator ========== */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  gap: 0.5rem;
}

.progress-step {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
}

.progress-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.progress-step.active .progress-step-number {
  background: #669776;
  color: #fff;
  box-shadow: 0 4px 8px rgba(102, 151, 118, 0.3);
}

.progress-step.active {
  color: #313a46;
  font-weight: 600;
}

.progress-step-divider {
  width: 40px;
  height: 2px;
  background: #e9ecef;
  margin: 0 0.5rem;
}

/* ========== Form Section Headers ========== */
.form-section-header {
  font-size: 1rem;
  font-weight: 600;
  color: #313a46;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--PrimarySoft);
  display: flex;
  align-items: center;
}

.form-section-header i {
  color: #669776;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* ========== Tooltips ========== */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #669776;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  margin-left: 0.5rem;
  cursor: help;
  transition: all 0.3s ease;
}

.tooltip-icon:hover {
  background: #557d63;
  transform: scale(1.1);
}

.custom-tooltip {
  position: relative;
  display: inline-block;
}

.custom-tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #313a46;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.custom-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #313a46 transparent transparent transparent;
}

.custom-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ========== Password Toggle Button ========== */
.auth-pass-inputgroup .btn-light {
  border-color: #e0e6ed;
  background: #f8f9fa;
  color: #6c757d;
  transition: all 0.3s ease;
}

.auth-pass-inputgroup .btn-light:hover {
  background: #669776;
  color: #fff;
  border-color: #669776;
}

/* ========== Footer Text ========== */
.mt-5.text-center p {
  color: #6c757d;
  font-size: 0.9rem;
}

/* ========== Trust Indicators ========== */
.trust-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--PrimarySoft);
  border-radius: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #313a46;
}

.trust-item i {
  color: #669776;
  margin-right: 0.4rem;
  font-size: 1rem;
}

/* ========== Account Type Select ========== */
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23669776' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control:focus {
  border-color: #669776;
}

/* ========== File Upload Styling ========== */
input[type="file"].form-control {
  padding: 0.5rem;
  cursor: pointer;
}

input[type="file"].form-control:hover {
  border-color: #669776;
}

/* ========== Checkbox Styling ========== */
input[type="checkbox"] {
  accent-color: #669776;
  cursor: pointer;
}

/* ========== Link Styling ========== */
a.text-muted {
  transition: color 0.3s ease;
}

a.text-muted:hover {
  color: #669776 !important;
}

/* ========== reCAPTCHA Container ========== */
.g-recaptcha {
  margin: 1rem 0;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .bg-primary.bg-soft h5.text-primary {
    font-size: 1.25rem;
  }

  .bg-primary.bg-soft p {
    font-size: 0.85rem;
  }

  .progress-steps {
    flex-direction: column;
    gap: 0.5rem;
  }

  .progress-step-divider {
    width: 2px;
    height: 20px;
  }

  .trust-indicator {
    flex-direction: column;
    gap: 0.5rem;
  }

  .account-pages {
    padding: 1rem;
  }
}

/* ========== Animation Classes ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* ========== Recovery Page Specific ========== */
.recovery-info {
  background: var(--PrimarySoft);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #669776;
  margin: 1rem 0;
}

.recovery-info i {
  color: #669776;
  margin-right: 0.5rem;
}

.recovery-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #313a46;
}

/* ========== Copyright Text ========== */
.copyright-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 1rem;
}

/* ========== Card Body Padding ========== */
.account-pages .card-body {
  padding: 2rem;
}

@media (max-width: 576px) {
  .account-pages .card-body {
    padding: 1.5rem;
  }
}

/* ========== Form Group Spacing ========== */
.form-group {
  margin-bottom: 1rem;
}

/* ========== Success Message Styling ========== */
.alert-success {
  background-color: var(--PrimarySoft);
  border-color: #669776;
  color: #313a46;
}

/* ========== Enhanced Focus States ========== */
*:focus {
  outline: none;
}

button:focus,
input:focus,
select:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 151, 118, 0.25);
}

/* ========== Loading State for Buttons ========== */
.btn-primary.loading {
  position: relative;
  color: transparent;
}

.btn-primary.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}
