/* ==========================================================================
   LeaseTrack SaaS - Institutional Auth Engine
   ========================================================================== */

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--lt-bg-app, #f1f5f9);
  color: #0f172a;
}

.auth-wrapper {
  position: relative;
  min-height: 100dvh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--lt-bg-app, #f1f5f9);
}

/* Left Branding Column (Desktop) */
.auth-branding {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.25) 0%, rgba(29, 78, 216, 0) 70%);
  pointer-events: none;
}

.branding-content {
  max-width: 460px;
  color: #ffffff;
  z-index: 2;
}

/* Glassmorphic Logo Cards */
.brand-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  background: whitesmoke;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.brand-logo-card.mobile-card {
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 22px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.brand-logo {
  max-width: 160px;
  height: auto;
}

.mobile-logo {
  max-width: 120px;
  height: auto;
}

.brand-headline {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
}

.brand-subtext {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Right Content Column */
.auth-content {
  padding: 2.5rem 1.5rem;
}

/* Login Panel */
.login-panel {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  box-shadow: 
    inset 0 1px 0 0 #ffffff,
    0 20px 25px -5px rgba(15, 23, 42, 0.08),
    0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* Floating Inputs */
.form-floating > .form-control {
  height: 56px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-floating > .form-control:focus {
  border-color: var(--lt-primary, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-floating > label {
  color: #64748b;
  padding-left: 1rem;
}

/* Password Toggle Button */
.password-field-wrapper {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  z-index: 10;
  cursor: pointer;
  padding: 4px;
}

.password-toggle-btn:hover {
  color: var(--lt-primary, #1d4ed8);
}

/* Submit Button */
.auth-submit-btn {
  height: 52px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--lt-primary, #1d4ed8);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-submit-btn:hover {
  background: var(--lt-primary-hover, #1e40af);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

/* Balanced Mobile Spacing */
@media (max-width: 991px) {
  .auth-wrapper {
    overflow-y: auto !important;
  }

  .auth-content {
    padding: 2.5rem 1.25rem !important;
  }

  .mobile-logo-wrapper {
    margin-bottom: 1.75rem !important; /* Generous gap above card */
  }

  .login-panel {
    border-radius: 18px;
  }

  .login-panel .card-body {
    padding: 1.75rem 1.5rem !important; /* Comfortable internal card padding */
  }

  .login-title {
    font-size: 1.35rem;
  }

  .form-floating > .form-control {
    height: 52px;
  }

  .form-floating > label {
    padding-top: 0.9rem;
    font-size: 0.9rem;
  }
}