/* ==========================================================================
   Customer sign-in pages (/login and /login/verify)
   Scoped under .auth-page so nothing leaks into the rest of the public site.
   Shares the visual language of the quote page (gradient hero, 22px cards) and
   the "Log in to continue" popup, so a customer sees one consistent sign-in
   experience whether they arrive from the navbar or from an enquiry.
   ========================================================================== */

.auth-page {
  --auth-ink: #14263f;
  --auth-muted: #5f7590;
  --auth-primary: #0076d7;
  --auth-primary-dark: #0a5aa4;
  --auth-teal: #0aa79b;
  --auth-line: #e2eaf4;
  --auth-soft: #f4f8fd;
  --auth-danger: #c0392b;

  position: relative;
  background: var(--auth-soft);
  color: var(--auth-ink);
  font-size: 15px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 54px;
  background: linear-gradient(125deg, #072c4f 0%, #0a4d88 36%, #0076d7 68%, #0aa79b 100%);
  color: #fff;
  text-align: left;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 320px at 8% 12%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(520px 420px at 92% 6%, rgba(10, 167, 155, 0.35), transparent 72%),
    radial-gradient(600px 380px at 55% 110%, rgba(0, 0, 0, 0.22), transparent 76%);
  pointer-events: none;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
  pointer-events: none;
}

.auth-hero .container {
  position: relative;
  z-index: 2;
}

.auth-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.auth-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.auth-breadcrumb a:hover {
  color: #fff;
}

.auth-breadcrumb .is-current {
  color: #a9e6ff;
}

/* Desktop keeps the intro and the card side by side so the whole sign-in
   fits in one viewport; narrow screens stack them. */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: center;
  gap: 44px;
}

.auth-intro {
  max-width: 460px;
}

.auth-hero__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(2, 20, 38, 0.24);
  font-size: 20px;
  color: #fff;
  backdrop-filter: blur(6px);
}

.auth-hero__title {
  margin: 0 0 7px;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}

.auth-hero__lead {
  max-width: 440px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(236, 247, 255, 0.9);
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  color: #f2fbff;
  backdrop-filter: blur(4px);
}

.auth-trust i {
  font-size: 13px;
  color: #8ef0e4;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.auth-card {
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  padding: 20px 24px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(2, 20, 38, 0.28);
}

/* The theme paints .login-area grey with a hard border and pads it through
   ".login-area.login-form", which outranks a single class; keep the classes
   (the layout regression tests pin them) but restyle them as the auth card. */
.auth-card.login-area {
  padding: 20px 24px 22px;
  border: 1px solid rgba(220, 232, 246, 0.9);
  background: #fff;
}

/* Step rail --------------------------------------------------------------- */

.auth-steps {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #9aabc0;
  transition: color 0.18s ease;
}

.auth-step:not(:first-child) {
  margin-left: 10px;
}

.auth-step:not(:first-child)::before {
  content: "";
  width: 30px;
  height: 2px;
  margin-right: 3px;
  border-radius: 2px;
  background: var(--auth-line);
}

.auth-step__dot {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #eef3f9;
  color: #8fa2b8;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-step.is-active {
  color: var(--auth-ink);
}

.auth-step.is-active .auth-step__dot {
  background: linear-gradient(135deg, var(--auth-primary-dark), var(--auth-primary));
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 118, 215, 0.3);
}

.auth-step.is-done .auth-step__dot {
  background: var(--auth-teal);
  color: #fff;
  box-shadow: none;
}

/* Card heading ------------------------------------------------------------ */

.auth-card__title {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--auth-ink);
}

.auth-card__lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--auth-muted);
}

.auth-card__lead strong {
  font-weight: 700;
  color: var(--auth-ink);
  white-space: nowrap;
}

/* Alerts ------------------------------------------------------------------ */

.auth-alert {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-alert.alert-success {
  border-color: #bfead9;
  background: #e6f9f3;
  color: #0a7a5c;
}

.auth-alert.alert-danger {
  border-color: #f5c6cb;
  background: #fdecea;
  color: #a12622;
}

.auth-alert.alert-info {
  border-color: #c4e2fb;
  background: #e8f4ff;
  color: #0a5aa4;
}

/* Fields ------------------------------------------------------------------ */

.auth-label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--auth-ink);
}

/* .input-icon keeps the icon and input paired (the theme positions the icon
   absolutely); the card class turns the wrapper into the field itself. */
.auth-card .input-icon {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--auth-line);
  border-radius: 12px;
  background: #fbfdff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-card .input-icon:focus-within {
  border-color: var(--auth-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 118, 215, 0.12);
}

.auth-card .input-icon i {
  left: 16px;
  z-index: 1;
  margin-top: 0;
  font-size: 16px;
  line-height: 1;
  color: #8fa6bd;
  transform: translateY(-50%);
}

.auth-card .input-icon input.auth-input {
  height: 46px;
  padding: 0 14px 0 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--auth-ink);
  text-transform: none;
}

.auth-card .input-icon input.auth-input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card .input-icon input.auth-input::placeholder {
  font-weight: 500;
  letter-spacing: normal;
  color: #a9b8c9;
}

.auth-card .input-icon input.auth-input--phone {
  padding-left: 88px;
}

.auth-field__prefix {
  position: absolute;
  top: 50%;
  left: 42px;
  padding-right: 10px;
  border-right: 1px solid var(--auth-line);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  color: #48627f;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-card .input-icon input.auth-input--otp {
  padding-left: 44px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--auth-muted);
}

.auth-hint i {
  margin-top: 1px;
  font-size: 14px;
  color: var(--auth-teal);
}

.auth-link {
  font-weight: 700;
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--auth-primary-dark);
  text-decoration: underline;
}

/* Submit ------------------------------------------------------------------ */

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a5aa4, #0076d7 55%, #0aa79b 120%);
  box-shadow: 0 10px 22px rgba(0, 118, 215, 0.28);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 118, 215, 0.36);
  color: #fff;
}

.auth-submit:focus {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(0, 118, 215, 0.22), 0 12px 26px rgba(0, 118, 215, 0.28);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit i {
  font-size: 16px;
}

/* Footer ------------------------------------------------------------------ */

.auth-foot {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--auth-line);
}

.auth-foot__note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #8fa2b8;
}

.auth-foot__note i {
  margin-top: 2px;
  font-size: 13px;
  color: #a9b8c9;
}

.auth-contractor {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: var(--auth-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--auth-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.auth-contractor:hover,
.auth-contractor:focus {
  border-color: rgba(0, 118, 215, 0.45);
  background: #eef6ff;
  color: var(--auth-primary-dark);
  text-decoration: none;
}

.auth-contractor__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--auth-line);
  font-size: 13px;
  color: var(--auth-primary);
}

.auth-contractor__text {
  min-width: 0;
}

.auth-contractor__text small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--auth-muted);
}

.auth-contractor__arrow {
  margin-left: auto;
  font-size: 13px;
  color: #a9b8c9;
  transition: transform 0.18s ease, color 0.18s ease;
}

.auth-contractor:hover .auth-contractor__arrow {
  transform: translateX(2px);
  color: var(--auth-primary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .auth-hero {
    padding: 104px 0 40px;
    text-align: center;
  }

  .auth-breadcrumb,
  .auth-trust {
    justify-content: center;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .auth-intro {
    max-width: 520px;
    margin: 0 auto;
  }

  .auth-hero__icon {
    margin: 0 auto 8px;
  }

  .auth-hero__lead {
    margin: 0 auto 10px;
  }

  .auth-card {
    max-width: 470px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .auth-hero {
    padding: 92px 0 30px;
  }

  .auth-hero__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 10px;
    font-size: 17px;
  }

  .auth-hero__title {
    font-size: 1.55rem;
  }

  .auth-hero__lead {
    margin-bottom: 8px;
    font-size: 12.5px;
  }

  .auth-card__title {
    font-size: 18px;
  }

  .auth-step:not(:first-child)::before {
    width: 20px;
  }

  .auth-card,
  .auth-card.login-area {
    padding: 16px 16px 18px;
    border-radius: 16px;
  }

  /* The card already says how sign-in works; on a phone the chips only add
     vertical scroll. */
  .auth-trust {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    transition: none !important;
  }
}
