/* =============================================================
   login.css  —  InfusionSafety · Login Page
   Custom overrides layered on top of Bootstrap 5

   Would be authored as SCSS with Bootstrap variable overrides
   in a compiled pipeline; kept as vanilla CSS here since the
   project ships pre-compiled Bootstrap from /lib.

   Sections
   ─────────
   1.  Design tokens (CSS custom properties)
   2.  Page base
   3.  Split layout wrapper
   4.  Left panel  (gradient hero)
   5.  Left panel  (brand · hero · feature list · trust badges)
   6.  Right panel (background + centering)
   7.  Mobile brand strip  (shown instead of left panel on <lg)
   8.  Glass card
   9.  Eyebrow badge
  10.  Headings & subtitle
  11.  Google sign-in button
  12.  Secure divider
  13.  Access-restricted notice
  14.  Trust-signal row  (HIPAA · GDPR · Audit)
  15.  Footer text
  16.  Keyframe animations
  17.  Responsive overrides  (≤991 px, ≤479 px)
   ============================================================= */


/* ── 1. Design tokens ──────────────────────────────────────── */
:root {
  --ls-blue-950:    #0d1f5c;
  --ls-blue-900:    #1e3a8a;
  --ls-blue-800:    #1e429f;
  --ls-blue-700:    #1a56db;
  --ls-blue-100:    #dbeafe;
  --ls-blue-50:     #eff6ff;

  --ls-bg:          #f0f4f8;           /* page background – soft blue-grey    */
  --ls-card-bg:     rgba(255,255,255,0.90);
  --ls-card-border: rgba(30, 58, 138, 0.12);
  --ls-text:        #0f172a;
  --ls-text-muted:  #64748b;
  --ls-text-light:  #94a3b8;

  --ls-radius:      18px;
  --ls-radius-sm:   10px;
  --ls-shadow:      0 24px 64px rgba(30, 58, 138, 0.13),
                    0 6px 20px rgba(0, 0, 0, 0.06);
}


/* ── 2. Page base ──────────────────────────────────────────── */
.ls-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ls-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}


/* ── 3. Split layout wrapper ───────────────────────────────── */
.ls-split {
  display: flex;
  min-height: 100vh;
}


/* ── 4. Left panel — gradient container ───────────────────── */
.ls-panel {
  flex: 0 0 52%;
  background: linear-gradient(155deg,
    #1a56db  0%,
    #1e3a8a 45%,
    #0d1f5c 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Top-right decorative orb */
.ls-panel::before {
  content: '';
  position: absolute;
  top: -110px;
  right: -90px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, .08) 0%,
    transparent 68%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Bottom-left decorative orb */
.ls-panel::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, .05) 0%,
    transparent 68%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Central mid-size orb */
.ls-orb-mid {
  position: absolute;
  top: 42%;
  left: 38%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, .03) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Inner content container */
.ls-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
  animation: fadeInLeft .55s cubic-bezier(.22, 1, .36, 1) both;
}


/* ── 5. Left panel content ─────────────────────────────────── */

/* Brand lockup */
.ls-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.2px;
  margin-bottom: 3.75rem;
  color: #fff;
  text-decoration: none;
}
.ls-brand:hover { color: #fff; text-decoration: none; }

.ls-brand-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hero headline */
.ls-hero h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.17;
  letter-spacing: -.55px;
  margin-bottom: 1rem;
  color: #fff;
}

.ls-hero p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
  margin: 0;
}

/* Feature checklist */
.ls-features {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 1.5rem;
}

.ls-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .81rem;
  color: rgba(255, 255, 255, .76);
  padding: .32rem 0;
  line-height: 1.5;
}

.ls-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: rgba(255, 255, 255, .18);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Trust badges strip (left panel bottom) */
.ls-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.ls-trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}


/* ── 6. Right panel ────────────────────────────────────────── */
.rs-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--ls-bg);
}


/* ── 7. Mobile brand strip ─────────────────────────────────── */
.rs-mobile-brand {
  display: none;
  width: 100%;
  background: linear-gradient(135deg,
    var(--ls-blue-700) 0%,
    var(--ls-blue-900) 100%
  );
  padding: 1.5rem 1.5rem 2rem;
  color: #fff;
}

.rs-mobile-brand .ls-brand {
  margin-bottom: .75rem;
  font-size: .98rem;
}

.rs-mobile-brand h2 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0;
  color: #fff;
}

.rs-mobile-brand p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .72);
  margin: .35rem 0 0;
}


/* ── 8. Glass card ─────────────────────────────────────────── */
.rs-card {
  width: 100%;
  max-width: 400px;
  background: var(--ls-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ls-card-border);
  border-radius: var(--ls-radius);
  box-shadow: var(--ls-shadow);
  padding: 2.75rem 2.5rem;
  text-align: center;
  overflow: hidden;            /* clip any child that bleeds past card edge */
  animation: fadeInUp .5s cubic-bezier(.22, 1, .36, 1) .08s both;
}


/* ── 9. Eyebrow badge ──────────────────────────────────────── */
.rs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ls-blue-700);
  background: var(--ls-blue-50);
  border: 1px solid rgba(30, 58, 138, .16);
  border-radius: 100px;
  padding: .3rem .8rem;
  margin-bottom: 1.3rem;
}


/* ── 10. Card headings & subtitle ──────────────────────────── */
.rs-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ls-text);
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: .45rem;
}

.rs-subtitle {
  font-size: .855rem;
  color: var(--ls-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}


/* ── 11. Google sign-in button ─────────────────────────────── */
/* a.google-btn: higher specificity than Bootstrap's a{} reset.
   No Bootstrap utility classes used — CSS handles all layout.       */
a.google-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 11px;
  box-sizing: border-box;   /* guarantee border+padding stay inside width */
  width: 100%;
  padding: .875rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: var(--ls-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: #3c4043;
  text-decoration: none;
  cursor: pointer;
  transition:
    background   .15s ease,
    border-color .15s ease,
    box-shadow   .18s ease,
    transform    .12s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  letter-spacing: .01em;
  -webkit-user-select: none;
  user-select: none;
}

.google-btn:hover {
  background:    #f8f9fa;
  border-color:  #c4c7ca;
  box-shadow:    0 4px 16px rgba(0, 0, 0, .1);
  color:         #202124;
  text-decoration: none;
  transform:     translateY(-1px);
}

.google-btn:active {
  transform:  scale(.983) translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  background: #f1f3f4;
}

.google-btn:focus-visible {
  outline:        3px solid rgba(30, 58, 138, .45);
  outline-offset: 2px;
  border-color:   var(--ls-blue-700);
}

.google-logo {
  width:     20px;
  height:    20px;
  flex-shrink: 0;
}


/* ── 12. Secure divider ────────────────────────────────────── */
.rs-divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.6rem 0;
  color: #cbd5e1;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rs-divider::before,
.rs-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}


/* ── 13. Access-restricted notice ──────────────────────────── */
.rs-notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--ls-radius-sm);
  padding: .9rem 1rem;
  font-size: .78rem;
  color: #166534;
  line-height: 1.6;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.rs-notice strong { font-weight: 600; }

.rs-notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #16a34a;
}


/* ── 14. Trust-signal row (bottom of card) ─────────────────── */
.rs-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.6rem;
  font-size: .67rem;
  font-weight: 500;
  color: var(--ls-text-light);
  letter-spacing: .01em;
}

.rs-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rs-trust-row .sep {
  color: #d1d5db;
  font-size: .6rem;
}


/* ── 15. Footer text ───────────────────────────────────────── */
.rs-footer {
  margin-top: 1.5rem;
  font-size: .71rem;
  color: var(--ls-text-light);
  line-height: 1.75;
  text-align: center;
  margin-bottom: 0;
}


/* ── 16. Keyframe animations ───────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity:   0;
    transform: translateY(18px);
  }
  to {
    opacity:   1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity:   0;
    transform: translateX(-14px);
  }
  to {
    opacity:   1;
    transform: translateX(0);
  }
}


/* ── 17. Responsive overrides ──────────────────────────────── */

/* Tablet & mobile  (< lg = 992 px) */
@media (max-width: 991.98px) {
  .ls-split {
    flex-direction: column;
    min-height: 100vh;
  }

  /* Hide desktop left panel */
  .ls-panel {
    display: none !important;
  }

  /* Show mobile brand strip */
  .rs-mobile-brand {
    display: block;
  }

  /* Right panel: column, center-aligned, padded on sides */
  .rs-panel {
    flex: 1;
    flex-direction: column;
    align-items: center;          /* centre card horizontally */
    justify-content: flex-start;
    padding: 0 1rem 2rem;         /* horizontal padding keeps card off edges */
  }

  .rs-card {
    width: 100%;
    max-width: 460px;
    margin: 1.5rem 0 0;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    animation: fadeInUp .4s cubic-bezier(.22, 1, .36, 1) both;
  }
}

/* Small phones (< 480 px) */
@media (max-width: 479.98px) {
  .rs-panel {
    padding: 0 .75rem 2rem;
  }

  .rs-card {
    padding: 2rem 1.5rem;
    border-radius: 14px;
  }

  .rs-title {
    font-size: 1.45rem;
  }

  .rs-subtitle {
    font-size: .83rem;
  }

  a.google-btn {
    font-size: .86rem;
    padding: .85rem 1.25rem;
  }
}
