/* ═══════════════════════════════════════════════════════
   Auth Pages Custom CSS
   ContactMe.life - Business Panel
   /business/cm-admin/assets/css/auth.css
═══════════════════════════════════════════════════════ */

/* ── Google Font Override ── */
body.auth-page {
  font-family: 'Noto Sans', 'Noto Kufi Arabic', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  padding: 1rem;
}

/* ── Logo نصي ── */
.cm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cm-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.cm-brand-name {
  font-size: 1.1rem;
  color: var(--bs-body-color);
  letter-spacing: -0.3px;
}

.cm-brand-name strong {
  color: #ffffff;
}


/* ── Auth Wrapper ── */
.auth-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.auth-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: #000;
}

/* الكارت الأصغر للصفحات الثانوية */
.auth-card.auth-card-sm {
  max-width: 900px;
  margin: auto;
}

/* ── Form Area ── */
.auth-form-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

.auth-logo img {
  max-height: 50px;
  width: auto;
}

/* ── Auth Banner (Right Panel) ── */
.auth-banner {
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.auth-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.auth-banner > * {
  position: relative;
  z-index: 1;
}

.auth-illustration {
  max-height: 220px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Input Group ── */
.input-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.input-group > * {
  margin: 0 !important;
}

.input-group .form-control {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  height: 46px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.input-group-text {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 0 16px;
  text-decoration: none;
  flex: 0 0 auto !important;
}

/* Specific overrides for show_hide_password input group */
#show_hide_password {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

#show_hide_password .form-control {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

#show_hide_password .input-group-text {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* LTR Border Merging */
.input-group > .input-group-text:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: 0 !important;
}

.input-group > .form-control:not(:first-child):not(:last-child) {
  border-radius: 0 !important;
}

.input-group > .form-control:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
}

.input-group > .input-group-text:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 0 !important;
}

/* Icon colors and visibility */
.input-group-text i {
  color: #a1a1a1 !important; /* Highly visible light indigo icon */
  font-size: 20px !important;
}

#togglePassword {
  cursor: pointer;
}

#togglePassword i {
  color: #a3aed0 !important; /* Eye icon color */
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.2) !important;
  border-color: #6366f1 !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  outline: none !important;
}

.form-control.is-invalid + .input-group-text,
.input-group:has(.is-invalid) .input-group-text {
  border-color: var(--bs-danger) !important;
}

/* ── RTL Adjustments ── */
[dir="rtl"] .input-group > .form-control:not(:last-child) {
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

[dir="rtl"] .input-group > .input-group-text:first-child {
  border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

[dir="rtl"] .rounded-end-4 {
  border-radius: 20px 0 0 20px !important;
}

/* ── Buttons ── */
.btn-grd-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-grd-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
}

/* ── Password Strength ── */
.progress {
  border-radius: 4px;
  background-color: var(--bs-border-color);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .auth-card {
    border-radius: 16px;
  }
  .auth-form-area {
    min-height: unset;
    padding: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  body.auth-page {
    padding: 0.5rem;
    align-items: flex-start;
  }
  .auth-card {
    border-radius: 12px;
  }
}
