:root {
  --customer-auth-ink: var(--text-primary, #0b1d3a);
  --customer-auth-muted: var(--text-secondary, #536176);
  --customer-auth-line: var(--border-primary, #e2e7ed);
  --customer-auth-teal: var(--color-secondary, #00b3b3);
  --customer-auth-teal-dark: var(--color-secondary-hover, #009a9a);
  --customer-auth-blue: var(--color-primary, #1565fc);
  --customer-auth-blue-dark: var(--color-primary-hover, #0e59e8);
  --customer-auth-navy: var(--inwind-navy, #0b1d3a);
}

* {
  box-sizing: border-box;
}

body.customer-login-shell {
  min-height: 100vh;
  margin: 0;
  color: var(--customer-auth-ink);
  background: var(--surface-secondary, #f5f7fa);
  font-family: var(--font-ui, "Poppins", "Inter", "Segoe UI", Arial, sans-serif);
  font-variant-numeric: tabular-nums lining-nums;
}

.customer-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 1fr);
}

.customer-login__visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--customer-auth-navy);
}

.customer-login__visual > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 47% center;
  filter: saturate(.92) contrast(1.04);
  transform: scale(1.015);
}

.customer-login__visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 29, 58, .05) 18%, rgba(11, 29, 58, .34) 54%, rgba(11, 29, 58, .94) 100%),
    linear-gradient(90deg, rgba(11, 29, 58, .34), transparent 66%);
}

.customer-login__copy {
  max-width: 39rem;
}

.customer-login__copy > span,
.customer-login__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.customer-login__copy > span {
  color: #b7f0ee;
}

.customer-login__copy h1 {
  margin: .9rem 0 .75rem;
  font-size: clamp(2.15rem, 3.3vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.customer-login__copy p {
  max-width: 36rem;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .98rem;
  line-height: 1.7;
}

.customer-login__visual-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.customer-login__visual-facts > span {
  display: grid;
  gap: .28rem;
  padding: 1.05rem 1rem 0 0;
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.customer-login__visual-facts > span:not(:first-child) {
  padding-left: 1.25rem;
}

.customer-login__visual-facts > span:last-child {
  border-right: 0;
}

.customer-login__visual-facts strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.customer-login__visual-facts small {
  color: rgba(255, 255, 255, .62);
  font-size: .72rem;
}

.customer-login__panel {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(6.5rem, 11vh, 8.5rem) clamp(2rem, 6vw, 6rem) 3rem;
  background:
    repeating-linear-gradient(135deg, rgba(11, 29, 58, .018) 0 1px, transparent 1px 12px),
    var(--surface-secondary, #f5f7fa);
}

.customer-login__corner-brand {
  position: absolute;
  top: clamp(1.6rem, 4vw, 3rem);
  right: clamp(1.6rem, 4vw, 3.5rem);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--customer-auth-navy);
  text-decoration: none;
}

.customer-login__corner-brand > span:last-child,
.customer-login__corner-brand strong,
.customer-login__corner-brand small {
  display: block;
}

.customer-login__corner-brand strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}

.customer-login__corner-brand small {
  margin-top: .25rem;
  color: var(--customer-auth-muted);
  font-size: .68rem;
}

.customer-login__logo-mark {
  position: relative;
  width: 36px;
  height: 44px;
}

.customer-login__logo-mark i {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 4px;
  height: 36px;
  border-radius: 999px;
  background: var(--customer-auth-teal);
  transform-origin: 50% 88%;
}

.customer-login__logo-mark i:nth-child(2) {
  transform: rotate(120deg);
  background: var(--customer-auth-blue);
}

.customer-login__logo-mark i:nth-child(3) {
  transform: rotate(240deg);
}

.customer-login__form-shell {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(11, 29, 58, .075);
  border-radius: var(--radius-lg, 16px);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-floating, 0 8px 24px rgba(11, 29, 58, .08));
}

.customer-login__form-heading {
  margin-bottom: 2rem;
}

.customer-login__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--customer-auth-blue);
}

.customer-login__form-heading h2 {
  margin: .8rem 0 .55rem;
  color: var(--customer-auth-navy);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}

.customer-login__form-heading p,
.customer-login__support {
  margin: 0;
  color: var(--customer-auth-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.customer-login__form {
  display: grid;
  gap: 1.15rem;
}

.customer-login__field {
  display: grid;
  gap: .45rem;
}

.customer-login__field label {
  color: #23395f;
  font-size: .78rem;
  font-weight: 600;
}

.customer-login__control {
  min-height: 3.35rem;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  padding: 0 .95rem;
  border: 1px solid var(--customer-auth-line);
  border-radius: var(--radius-md, 8px);
  background: #fff;
  box-shadow: var(--shadow-card, 0 2px 8px rgba(11, 29, 58, .04));
  transition: border-color .18s ease, box-shadow .18s ease;
}

.customer-login__control:focus-within {
  border-color: var(--customer-auth-blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 252, .12);
}

.customer-login__control > i {
  color: #6f7f99;
  font-size: 1.1rem;
}

.customer-login__control input {
  width: 100%;
  min-width: 0;
  height: 3.15rem;
  padding: 0;
  color: var(--customer-auth-navy);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: .88rem;
}

.customer-login__control input::placeholder {
  color: #98a4b7;
}

.customer-login__field > span,
.customer-login__error {
  color: var(--color-danger, #e5484d);
  font-size: .76rem;
}

.customer-login__error:empty {
  display: none;
}

.customer-login__form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.customer-login__remember,
.customer-login__secure-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--customer-auth-muted);
  font-size: .75rem;
}

.customer-login__remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--customer-auth-blue);
}

.customer-login__secure-note {
  color: var(--customer-auth-blue);
}

.customer-login__button {
  min-height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-top: .2rem;
  padding: .8rem 1.2rem;
  color: #fff;
  border: 1px solid var(--customer-auth-blue);
  border-radius: var(--radius-md, 8px);
  background: var(--customer-auth-blue);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.customer-login__button:hover {
  background: var(--customer-auth-blue-dark);
  box-shadow: 0 8px 18px rgba(21, 101, 252, .16);
  transform: translateY(-1px);
}

.customer-login__button:focus-visible,
.customer-login__corner-brand:focus-visible,
.customer-login__remember input:focus-visible {
  outline: 3px solid rgba(21, 101, 252, .22);
  outline-offset: 3px;
}

.customer-login__support {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--customer-auth-line);
}

@media (prefers-reduced-motion: reduce) {
  .customer-login__button {
    transition: none;
  }
}

@media (max-width: 900px) {
  .customer-login {
    grid-template-columns: 1fr;
  }

  .customer-login__visual {
    min-height: 42vh;
  }

  .customer-login__visual-overlay {
    padding: 2rem;
  }

  .customer-login__copy h1 {
    max-width: 34rem;
    font-size: clamp(1.8rem, 6vw, 2.7rem);
  }

  .customer-login__panel {
    min-height: 58vh;
    padding: 7rem 1.5rem 3rem;
  }
}

@media (max-width: 560px) {
  .customer-login__visual {
    min-height: 34vh;
  }

  .customer-login__visual-overlay {
    padding: 1.35rem;
  }

  .customer-login__copy h1 {
    font-size: 1.65rem;
  }

  .customer-login__copy p,
  .customer-login__visual-facts > span:nth-child(3) {
    display: none;
  }

  .customer-login__visual-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-login__panel {
    padding: 6.3rem 1.2rem 2rem;
  }

  .customer-login__corner-brand {
    top: 1.25rem;
    right: 1.25rem;
  }

  .customer-login__form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
