/* ============================================================
   Hostaan Login Page — Brand-consistent auth layout
   Two-column: brand panel left, form panel right
   ============================================================ */

/* Brand variables (matches website custom.css) */
:root {
  --h-primary:      #004275;
  --h-primary-hover:#003560;
  --h-blue-dark:    #047BC1;
  --h-blue-light:   #27AAE1;
  --h-bg-pale:      #f6f8fa;
  --h-text-body:    #343f52;
  --h-text-light:   #6c7a8a;
  --h-shadow-md:    0 0.5rem 1.5rem rgba(30,34,40,0.06);
  --h-radius:       0.5rem;
}

/* ===== Full-height split layout ===== */
.auth-split {
  display: flex;
  min-height: 100vh;
}

/* ===== Left: Brand panel ===== */
.auth-brand-panel {
  display: none;
  width: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  /* Hostaan sunset gradient */
  background: linear-gradient(180deg, #f6f8fa 0%, #ffffff 100%);
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 130% 90% at 50% 110%,
    rgba(255, 160, 60, 0.55) 0%,
    rgba(255, 120, 40, 0.35) 15%,
    rgba(255, 180, 100, 0.25) 30%,
    rgba(39, 170, 225, 0.18) 50%,
    rgba(4, 123, 193, 0.07) 70%,
    transparent 100%
  );
  pointer-events: none;
}

@media (min-width: 768px) {
  .auth-brand-panel { display: flex; flex-direction: column; }
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  padding: 3rem 3rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-brand-logo img {
  height: 40px;
  width: auto;
}

/* Emblem — shown in left panel above tagline */

.auth-brand-tagline {
  margin-top: 3rem;
}

.auth-brand-tagline h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--h-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.auth-brand-tagline p {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  color: var(--h-text-body);
  font-weight: 600;
  margin: 0;
}

/* Emblem (large, above tagline) */
.auth-brand-emblem {
  display: block;
  width: 160px; /* 200% of original */
  height: auto;
  margin-bottom: 0.75rem;
}

/* Robot — centered in left panel, low peek */
.auth-brand-robot {
  position: absolute;
  bottom: -250px; /* Higher so more of robot is visible */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;        /* ~100% of panel width, capped */
  max-width: 560px;
  min-width: 260px;
  pointer-events: none;
  z-index: 1;
  /* opacity not set = visible by default on verify/OTP pages */
}

/* On animated pages: fill-mode both keeps first keyframe (opacity:0)
   during the delay, then holds final keyframe (opacity:1) after */
.auth-animated .auth-brand-robot {
  animation: authRobotRise 2.5s 0.4s ease-out both;
}

@keyframes authRobotRise {
  0%   { bottom: -380px; opacity: 0; }
  100% { bottom: -250px; opacity: 1; }
}

/* ===== Right: Form panel ===== */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 2rem 1.5rem;
  position: relative;
}

.auth-form-box {
  width: 100%;
  max-width: 400px;
}

.auth-form-logo {
  display: block;
  margin-bottom: 2.5rem;
}

.auth-form-logo img {
  height: 30px;
  width: auto;
}

/* Heading inside the form */
.auth-form-box h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--h-primary);
  margin-bottom: 0.5rem;
  -webkit-text-fill-color: var(--h-primary);
  background: none;
}

.auth-form-box .text-muted {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--h-text-light) !important;
  margin-bottom: 1.75rem;
}

/* Form controls — brand style (no rounded-pill) */
.auth-form-box .form-control {
  border: 1px solid #d1d5db;
  border-radius: var(--h-radius);
  padding: 0.7rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.975rem;
  color: var(--h-text-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-box .form-control:focus {
  border-color: var(--h-primary);
  box-shadow: 0 0 0 3px rgba(0, 66, 117, 0.1);
  outline: none;
}

.auth-form-box .form-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--h-text-body);
  margin-bottom: 0.4rem;
}

/* Submit button — brand primary */
.auth-form-box .btn-primary {
  background-color: var(--h-primary);
  border-color: var(--h-primary);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.975rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--h-radius);
  width: 100%;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
}

.auth-form-box .btn-primary:hover {
  background-color: var(--h-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 66, 117, 0.25);
}

/* Alerts inside auth form */
.auth-form-box .alert {
  border: none;
  border-left: 4px solid;
  border-radius: var(--h-radius);
  padding: 0.75rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-form-box .alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border-left-color: #dc3545;
  color: #a12030;
}

.auth-form-box .alert-success {
  background: rgba(25, 135, 84, 0.08);
  border-left-color: #198754;
  color: #145c38;
}

/* Footer links */
.auth-form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: var(--h-text-light);
}

.auth-form-footer a {
  color: var(--h-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-form-footer a:hover {
  color: var(--h-blue-dark);
  text-decoration: underline;
}

/* ===== Password progress bar ===== */
.pwstrength_viewport_progress {
  color: #fff;
}
