:root {
  --navy-950: #061322;
  --navy-900: #0a1c31;
  --navy-800: #103456;
  --blue: #3483fa;
  --blue-dark: #2467c7;
  --yellow: #ffe600;
  --ink: #142136;
  --muted: #6b7b8f;
  --line: #dfe7f0;
  --surface: #fff;
  --success: #25b978;
  --danger: #e64e5e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.08fr) minmax(500px, .92fr);
  overflow: hidden;
}

.brand-side {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 44px clamp(38px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 13%, rgba(52, 131, 250, .26), transparent 31%),
    radial-gradient(circle at 88% 76%, rgba(255, 230, 0, .09), transparent 28%),
    linear-gradient(138deg, #071426 0%, #0b2340 58%, #0e345d 100%);
}

.brand-side::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  left: -280px;
  bottom: -250px;
  box-shadow:
    0 0 0 80px rgba(255, 255, 255, .018),
    0 0 0 160px rgba(255, 255, 255, .012);
}

.brand-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.brand-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.multcabos-logo {
  width: min(320px, 52vw);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .16));
}

.secure-pill {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b8c7d8;
  background: rgba(255, 255, 255, .045);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.secure-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38d58f;
  box-shadow: 0 0 0 4px rgba(56, 213, 143, .11);
}

.brand-content {
  position: relative;
  z-index: 2;
  margin: auto 0;
  max-width: 760px;
  padding: clamp(48px, 8vh, 92px) 0;
}

.product-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.ml-icon {
  width: 72px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 32px rgba(3, 12, 24, .18);
}

.ml-icon img {
  width: 60px;
  height: 44px;
  object-fit: contain;
}

.product-copy strong {
  display: block;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.1;
}

.product-copy span {
  display: block;
  color: #93a8bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-top: 5px;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 em {
  color: var(--yellow);
  font-style: normal;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #bdcada;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.6;
}

.flow-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.flow-line span {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  color: #c5d1df;
  font-size: 12px;
  font-weight: 850;
}

.flow-line b {
  color: #5e7896;
  font-size: 14px;
}

.watermark {
  position: absolute;
  z-index: 1;
  right: -65px;
  bottom: -48px;
  width: min(430px, 42vw);
  opacity: .035;
  transform: rotate(-7deg);
  pointer-events: none;
  user-select: none;
}

.brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #71869d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .4px;
}

.brand-footer span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #395b7c;
}

.form-side {
  position: relative;
  background: #f5f8fc;
  display: grid;
  place-items: center;
  padding: 40px clamp(28px, 5vw, 80px);
}

.form-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(52, 131, 250, .09), transparent 26%),
    radial-gradient(circle at 0 100%, rgba(255, 230, 0, .08), transparent 24%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 500px);
  background: var(--surface);
  border: 1px solid rgba(210, 220, 232, .9);
  border-radius: 26px;
  padding: clamp(28px, 3vw, 42px);
  box-shadow: 0 28px 80px rgba(19, 46, 80, .12);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.card-top h2 {
  font-size: clamp(28px, 2.2vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}

.card-top p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 9px 0 0;
}

.bip-badge {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 15px;
  background: var(--yellow);
  color: #172338;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(255, 230, 0, .22);
}

.error-box {
  margin: -12px 0 20px;
  border: 1px solid #ffc8cc;
  border-radius: 13px;
  background: #fff0f1;
  color: #b80f1a;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 850;
}

.field {
  display: block;
  margin-top: 18px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 8px;
  font-size: 13px;
  font-weight: 850;
  color: #314158;
}

.input-wrap {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  transition: .2s;
}

.input-wrap:focus-within {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(52, 131, 250, .12);
}

.input-wrap svg {
  width: 20px;
  color: #8a9aae;
  flex: 0 0 20px;
}

.input-wrap input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.input-wrap input::placeholder {
  color: #a4b0bf;
  font-weight: 500;
}

.show-password {
  border: 0;
  background: transparent;
  color: #788a9f;
  padding: 6px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
}

.show-password:hover {
  background: #eef3f8;
  color: var(--blue);
}

.show-password svg {
  width: 18px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 17px 2px 24px;
  font-size: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53657b;
  font-weight: 700;
  cursor: pointer;
}

.remember input {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid #cbd6e2;
  border-radius: 5px;
  margin: 0;
  display: grid;
  place-items: center;
}

.remember input:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.remember input:checked::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.forgot {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 850;
}

.forgot:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue), #2873df);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(52, 131, 250, .22);
  cursor: pointer;
  transition: .2s;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(52, 131, 250, .3);
}

.login-btn:active {
  transform: translateY(0);
}

.divider {
  height: 1px;
  background: #e8edf3;
  margin: 28px 0 23px;
  position: relative;
}

.divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 12px;
  background: #fff;
  color: #9aa7b7;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.google-btn {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: #405166;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 850;
  position: relative;
}

.google-btn:disabled {
  opacity: .82;
  cursor: not-allowed;
}

.google-g {
  font-size: 18px;
  font-weight: 950;
  color: #4285f4;
}

.future {
  position: absolute;
  right: 10px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #8291a3;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8190a2;
  font-size: 11px;
  margin-top: 25px;
  text-align: center;
}

.help a {
  color: #546b84;
  text-decoration: none;
  font-weight: 850;
}

.help a:hover {
  color: var(--blue);
}

.mobile-brand {
  display: none;
}

@media (min-width: 1900px) {
  .login-card {
    width: min(100%, 560px);
  }

  .brand-content {
    max-width: 920px;
  }
}

@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: minmax(420px, 1fr) minmax(430px, .88fr);
  }

  .brand-side {
    padding: 36px clamp(28px, 4vw, 54px);
  }
}

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

  .brand-side {
    display: none;
  }

  .form-side {
    min-height: 100vh;
    padding: 28px 18px;
    align-content: center;
  }

  .mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 500px);
    margin: 0 auto 16px;
    color: #fff;
    background: var(--navy-900);
    border-radius: 16px;
    padding: 13px 16px;
    gap: 18px;
  }

  .mobile-wordmark {
    display: inline-flex;
    align-items: baseline;
    color: #fff;
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 7vw, 34px);
    font-weight: 950;
    line-height: .9;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .mobile-wordmark span {
    color: #fff;
  }

  .mobile-wordmark strong {
    color: #ed1c24;
    font: inherit;
  }

  .mobile-ml {
    width: 52px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .form-side {
    padding: 18px 12px;
  }

  .login-card {
    border-radius: 22px;
    padding: 26px 20px 23px;
  }

  .card-top {
    margin-bottom: 24px;
  }

  .bip-badge {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .input-wrap,
  .login-btn {
    height: 54px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .forgot {
    align-self: flex-end;
    margin-top: -24px;
  }

  .future {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .mobile-brand {
    padding: 12px;
  }

  .mobile-wordmark {
    font-size: clamp(22px, 6.8vw, 29px);
  }

  .login-card {
    padding: 22px 16px 20px;
  }

  .card-top {
    gap: 12px;
  }

  .card-top h2 {
    font-size: 25px;
  }

  .card-top p,
  .input-wrap input {
    font-size: 14px;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .brand-side {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .brand-content {
    padding: 34px 0;
  }

  h1 {
    font-size: clamp(38px, 4.6vw, 62px);
  }

  .lead {
    margin-top: 18px;
  }

  .flow-line {
    margin-top: 24px;
  }

  .login-card {
    padding: 30px;
  }
}
