/* ══════════════════════════════════════════
   CUSTOMER LOGIN — HERO / CARD
   Figma: Loan Center Credit Card — "Main Light-Log In" (node 3312:20688)
══════════════════════════════════════════ */

.cl-hero {
  position: relative;
  background: linear-gradient(169deg, #01a1c8 8%, #2b4c81 92%);
  padding: 64px 20px 96px;
  overflow: hidden;
}

/* Bubbles — reuses the theme's shared .hero__circle base class
   (see style.css ~L202: rgba(255,255,255,0.07) circles), the same
   convention used on the front page, title-loan, refinance, etc. heroes. */
.cl-hero__circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cl-hero__circles .hero__circle--1 { width: 260px; height: 260px; left: 4%; top: 8%; opacity: 0.5; }
.cl-hero__circles .hero__circle--2 { width: 420px; height: 420px; right: -80px; bottom: -160px; opacity: 0.5; }
.cl-hero__circles .hero__circle--3 { width: 360px; height: 360px; left: 42%; top: -180px; opacity: 0.5; }
.cl-hero__circles .hero__circle--4 { width: 180px; height: 180px; left: 10%; bottom: 6%; opacity: 0.5; }

/* Stage wraps the card together with the ring + dot-grid decorations so
   they sit around the card the same way .tl-hero__photo-wrap positions
   .tl-hero__ring / .tl-hero__dots around the photo. */
.cl-hero__stage {
  position: relative;
  max-width: 998px;
  margin: 0 auto;
}

/* Ring — matches .hero__ring / .tl-hero__ring (top-right, opacity 0.55) */
.cl-hero__ring {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.cl-hero__ring img { width: 100%; height: 100%; }

/* Dot grid — matches .hero__dots / .tl-hero__dots (bottom-left) */
.cl-hero__dots {
  position: absolute;
  bottom: -50px;
  left: -84px;
  width: 180px;
  height: 170px;
  pointer-events: none;
  z-index: 0;
}
.cl-hero__dots img { width: 100%; height: 100%; }

.cl-hero__card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-backdrop-filter: blur(27px);
  backdrop-filter: blur(27px);
  background: rgba(255, 255, 255, 0.4);
  /* border-image is intentionally omitted: it overrides border-radius in all browsers */
  border: 7px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px 32px 32px 32px;
  -webkit-box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.2), inset 0 1px 2px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.15);
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.2), inset 0 1px 2px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 2px 0 rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-height: 560px;
}

.cl-hero__photo {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  background: rgba(255, 255, 255, 0.00);
  box-shadow: 0 12px 40px 0 rgba(13, 31, 60, 0.12), 0 4px 12px 0 rgba(13, 31, 60, 0.06);
}

.cl-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-hero__panel {
  background: #fff;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 60px;
}

.cl-hero__panel-inner {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cl-hero__heading {
  text-align: center;
}

.cl-hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #2d2d2d;
  margin: 0 0 12px;
}

.cl-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: #3d5a7a;
  margin: 0;
}

.cl-hero__form-wrap {
  width: 100%;
}

/* ── Overrides for the [customer-login-widget] Angular form ──
   Widget markup/classes: form.customer-login-form > div.login-form >
   div.form-group > label + input.form-control, button.login-btn */
.cl-hero__form-wrap .customer-login-form {
  width: 100%;
}

.cl-hero__form-wrap .login-form {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Hide the widget's own hardcoded "Login" heading — our design supplies
   the "Consumer Portal" heading/subtitle above instead. */
.cl-hero__form-wrap .login-title {
  display: none;
}

.cl-hero__form-wrap .login-form .form-group {
  margin-bottom: 16px;
}

.cl-hero__form-wrap .login-form label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: rgba(53, 53, 53, 0.9);
  margin-bottom: 6px;
}

.cl-hero__form-wrap .login-form input.form-control {
  width: 100%;
  height: 46px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(53, 53, 53, 0.9);
  background: #fff;
  box-sizing: border-box;
}

.cl-hero__form-wrap .login-form input.form-control.is-invalid {
  border: 1px solid #fd676c;
}

.cl-hero__form-wrap .login-form .dob-wrapper .calendar-toggler {
  top: 0;
  right: 0;
  margin: 11px 12px;
}

.cl-hero__form-wrap .login-form .form-group:last-child {
  margin-top: 8px;
  margin-bottom: 0;
}

.cl-hero__form-wrap .login-form .login-btn {
  width: 100%;
  height: 50px;
  border: 2px solid #01a1c8;
  border-radius: 9999px;
  background: linear-gradient(270deg, #05a1dd 0%, #1b3f68 57%, #000000 100%);
  box-shadow: 0 8px 15px rgba(26, 105, 196, 0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  padding: 6px 24px !important;
}

.cl-hero__form-wrap .login-form .login-btn:hover {
  opacity: 0.92;
}

@media (max-width: 1024px) {
  .cl-hero {
    padding-left: 48px;
    padding-right: 48px;
  }

  .cl-hero__panel {
    padding: 40px 24px;
  }
}

@media (max-width: 900px) {
  .cl-hero__ring {
    width: 190px;
    height: 190px;
    top: -50px;
    right: -40px;
  }

  .cl-hero__dots {
    width: 120px;
    height: 112px;
    bottom: -15px;
    left: -30px;
  }

  .cl-hero__circles .hero__circle--1 { width: 160px; height: 160px; }
  .cl-hero__circles .hero__circle--2 { width: 260px; height: 260px; }
  .cl-hero__circles .hero__circle--3 { width: 220px; height: 220px; top: -100px; }
  .cl-hero__circles .hero__circle--4 { width: 120px; height: 120px; }
}

@media (max-width: 767px) {
  .cl-hero {
    padding-left: 36px;
    padding-right: 36px;
  }
  
  .cl-hero__card {
    flex-direction: column;
  }

  .cl-hero__photo {
    max-height: 70vw;
  }
}

@media (max-width: 440px) {
  .cl-hero__title {
    font-size: 36px;
  }
}