body.login {
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(33, 140, 248, .16), transparent 27%),
    radial-gradient(circle at 86% 84%, rgba(51, 183, 239, .12), transparent 24%),
    #edf5ff;
  color: #10213a;
}

body.login::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .33;
  background-image: linear-gradient(rgba(17, 105, 214, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 105, 214, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

body.login .container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 28px;
  display: grid;
  place-items: center;
}

body.login .login-wrap {
  width: min(1180px, 100%);
  max-width: none;
  background: transparent;
  animation: none;
}

.login-shell {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 76px;
  grid-template-areas: "login campaign" "support support";
  overflow: hidden;
  border: 1px solid rgba(18, 70, 132, .18);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(13, 65, 126, .21);
}

.login-panel {
  grid-area: login;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(38px, 5vw, 68px);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.client-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 34px;
}

.client-brand img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 20px;
  background: #f0f7ff;
  box-shadow: 0 12px 30px rgba(18, 91, 169, .13);
}

.client-brand div { display: grid; line-height: 1.22; }
.client-brand strong { color: #0a3974; font-size: 21px; font-weight: 800; }
.client-brand span { margin-top: 4px; color: #71839a; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; }

.login-heading { text-align: center; }
.login-heading > span { color: #4c78b2; font-size: 13px; font-weight: 800; }
.login-heading h1 { margin: 6px 0 9px; color: #092344; font-size: clamp(33px, 4vw, 45px); line-height: 1.2; }
.login-heading p { margin: 0 0 27px; color: #6f7f93; font-size: 14px; }

.login-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f4b9bf; border-radius: 13px; background: #fff3f4; color: #b42332; font-size: 13px; font-weight: 700; }
.login-form { display: grid; gap: 17px; }
.login-form label { display: grid; gap: 8px; color: #263c58; font-size: 13px; font-weight: 800; }
.login-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #d6e1ef;
  border-radius: 13px;
  outline: 0;
  background: #f9fbfe;
  color: #10213a;
  font: inherit;
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-form input:focus { border-color: #2987e8; background: #fff; box-shadow: 0 0 0 4px rgba(41, 135, 232, .12); }
.login-form input::placeholder { color: #a2adbc; font-weight: 500; }
.login-trap { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.password-field { position: relative; display: block; }
.password-field input { padding-inline-end: 72px; }
.password-field button { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 9px; padding: 7px 10px; background: #e7f2ff; color: #0968c8; font-family: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.login-submit { height: 56px; margin-top: 4px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(135deg, #075fc2, #1598ed); color: #fff; box-shadow: 0 15px 30px rgba(8, 105, 205, .25); font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 19px 36px rgba(8, 105, 205, .3); }
.login-submit span { font-size: 20px; }
.login-security { margin: 21px 0 0; color: #8b98a9; text-align: center; font-size: 11px; }
.login-security span { color: #22b86b; font-size: 8px; }

.campaign-panel {
  grid-area: campaign;
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #061832;
}

.campaign-panel::before {
  content: "";
  position: absolute;
  inset: -22px;
  background: radial-gradient(circle at 74% 42%, rgba(24, 121, 210, .38), transparent 38%), linear-gradient(145deg, #071b3a, #020b18 72%);
  opacity: 1;
}

.campaign-panel picture {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.campaign-panel picture img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, .22));
}

.login-support-bar {
  grid-area: support;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 205px 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 9px 24px;
  color: #e6f2ff;
  background: linear-gradient(90deg, #071b3a, #08264f 52%, #061a37);
  border-top: 1px solid rgba(116, 194, 255, .25);
}

.support-brand { height: 56px; display: flex; align-items: center; }
.support-brand img { width: 175px; height: 56px; padding: 4px 8px; object-fit: contain; object-position: center; border-radius: 10px; background: rgba(255, 255, 255, .96); }
.support-credit { padding-inline: 25px; border-inline: 1px solid rgba(120, 194, 255, .3); text-align: center; font-size: 13px; color: #bfd7ef; }
.support-credit strong { color: #fff; }
.support-numbers { display: flex; align-items: center; gap: 10px; }
.support-numbers a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 11px; color: #fff; font-size: 12px; transition: background .18s ease; }
.support-numbers a:hover { background: rgba(255, 255, 255, .1); }
.support-numbers a > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #178be3; color: #fff; font-size: 15px; }
.support-numbers .whatsapp-icon { background: #25c66b; }

@media (max-width: 900px) {
  body.login .container { display: block; padding: 0; background: #fff; }
  body.login .login-wrap { width: 100%; }
  .login-shell { min-height: 100dvh; grid-template-columns: 1fr; grid-template-rows: 360px auto auto; grid-template-areas: "campaign" "login" "support"; border: 0; border-radius: 0; box-shadow: none; }
  .campaign-panel img { object-fit: cover; object-position: center 38%; }
  .login-panel { padding: 34px 22px 38px; }
  .client-brand { margin-bottom: 25px; }
  .client-brand img { width: 66px; height: 66px; }
  .login-heading h1 { font-size: 30px; }
  .login-support-bar { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px 18px; text-align: center; }
  .support-brand { justify-content: center; }
  .support-credit { padding: 10px 0; border-inline: 0; border-block: 1px solid rgba(120, 194, 255, .22); }
  .support-numbers { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .login-shell { grid-template-rows: 300px auto auto; }
  .campaign-panel img { object-fit: cover; object-position: center 42%; }
  .support-numbers { display: grid; grid-template-columns: 1fr 1fr; }
  .support-numbers a { padding: 7px 5px; font-size: 11px; }
}

/* v1.9.1 — viewport-locked app layout (no page scrolling) */
html,
body.login {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.login .container {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: clamp(12px, 2.4vh, 28px);
}

body.login .login-wrap {
  height: min(690px, calc(100dvh - clamp(24px, 4.8vh, 56px)));
}

.login-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) clamp(60px, 9vh, 76px);
}

.login-panel,
.campaign-panel {
  min-height: 0;
}

@media (max-height: 760px) and (min-width: 901px) {
  .login-panel { padding-block: 22px; }
  .client-brand { margin-bottom: 15px; }
  .client-brand img { width: 60px; height: 60px; border-radius: 16px; }
  .client-brand strong { font-size: 18px; }
  .login-heading h1 { font-size: 32px; margin-block: 3px 6px; }
  .login-heading p { margin-bottom: 15px; }
  .login-form { gap: 11px; }
  .login-form input { height: 46px; }
  .login-submit { height: 48px; }
  .login-security { margin-top: 12px; }
}

@media (max-width: 900px) and (orientation: portrait) {
  body.login .container { height: 100dvh; min-height: 0; padding: 0; }
  body.login .login-wrap { height: 100dvh; }
  .login-shell {
    height: 100dvh;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(145px, 27dvh, 225px) minmax(0, 1fr) auto;
    grid-template-areas: "campaign" "login" "support";
  }
  .campaign-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
  .login-panel { justify-content: center; overflow: hidden; padding: clamp(14px, 2.6vh, 25px) clamp(18px, 6vw, 34px); }
  .client-brand { margin-bottom: clamp(8px, 1.7vh, 16px); }
  .client-brand img { width: clamp(48px, 8vh, 62px); height: clamp(48px, 8vh, 62px); border-radius: 15px; }
  .client-brand strong { font-size: 17px; }
  .client-brand span { font-size: 8px; }
  .login-heading h1 { margin: 2px 0 5px; font-size: clamp(25px, 4.5vh, 31px); }
  .login-heading p { margin-bottom: clamp(9px, 1.8vh, 16px); font-size: 12px; }
  .login-form { gap: clamp(8px, 1.5vh, 13px); }
  .login-form label { gap: 5px; font-size: 11px; }
  .login-form input { height: clamp(42px, 6.5vh, 49px); border-radius: 11px; }
  .login-submit { height: clamp(44px, 6.8vh, 50px); font-size: 14px; }
  .login-security { margin-top: clamp(7px, 1.4vh, 13px); font-size: 9px; }
  .login-support-bar {
    grid-template-columns: 88px 1fr;
    gap: 7px 12px;
    padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  }
  .support-brand { grid-row: 1 / 3; height: 48px; }
  .support-brand img { width: 88px; height: 48px; padding: 3px 5px; border-radius: 8px; }
  .support-credit { padding: 0; border: 0; text-align: start; font-size: 9px; white-space: nowrap; }
  .support-numbers { display: flex; justify-content: flex-start; flex-wrap: nowrap; gap: 3px; }
  .support-numbers a { gap: 4px; padding: 3px 5px; font-size: 9px; }
  .support-numbers a > span { width: 21px; height: 21px; font-size: 10px; }
}

@media (max-width: 900px) and (orientation: portrait) and (max-height: 640px) {
  .login-shell { grid-template-rows: 125px minmax(0, 1fr) auto; }
  .campaign-panel img { object-position: center 34%; }
  .login-panel { padding-block: 10px; }
  .client-brand { margin-bottom: 5px; }
  .client-brand img { width: 42px; height: 42px; }
  .client-brand div { display: none; }
  .login-heading > span,
  .login-heading p,
  .login-security { display: none; }
  .login-heading h1 { margin: 0 0 7px; font-size: 24px; }
  .login-form { gap: 7px; }
  .login-form input { height: 40px; }
  .login-submit { height: 42px; }
  .support-credit { display: none; }
  .login-support-bar { grid-template-columns: 76px 1fr; }
  .support-brand { grid-row: auto; height: 40px; }
  .support-brand img { width: 76px; height: 40px; }
}

@media (max-height: 600px) and (orientation: landscape) {
  body.login .container { padding: 8px; }
  body.login .login-wrap { height: calc(100dvh - 16px); width: min(1040px, 100%); }
  .login-shell {
    grid-template-columns: minmax(350px, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 52px;
    grid-template-areas: "login campaign" "support support";
    border-radius: 20px;
  }
  .login-panel { padding: 10px clamp(24px, 5vw, 48px); }
  .client-brand { margin-bottom: 5px; }
  .client-brand img { width: 44px; height: 44px; border-radius: 12px; }
  .client-brand strong { font-size: 15px; }
  .client-brand span { display: none; }
  .login-heading > span,
  .login-heading p,
  .login-security { display: none; }
  .login-heading h1 { margin: 0 0 7px; font-size: 24px; }
  .login-form { gap: 7px; }
  .login-form label { gap: 3px; font-size: 10px; }
  .login-form input { height: 38px; }
  .login-submit { height: 40px; font-size: 13px; }
  .campaign-panel img { object-fit: cover; object-position: center 34%; }
  .login-support-bar { grid-template-columns: 120px 1fr auto; gap: 12px; padding: 5px 14px; }
  .support-brand { height: 40px; }
  .support-brand img { width: 112px; height: 40px; }
  .support-credit { padding-inline: 12px; font-size: 10px; }
  .support-numbers { gap: 2px; }
  .support-numbers a { padding: 4px 5px; font-size: 9px; }
  .support-numbers a > span { width: 22px; height: 22px; font-size: 10px; }
}

/* Keep the full Crown artwork visible; never crop or zoom it. */
.campaign-panel picture,
.campaign-panel img {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  object-fit: contain !important;
  object-position: center !important;
  max-width: 100%;
  max-height: 100%;
}
