:root {
  --rg-blue: #315df4;
  --rg-blue-2: #3f7cff;
  --rg-purple: #8b7bff;
  --rg-orange: #ffac38;
  --rg-ink: #11152f;
  --rg-muted: #68708c;
  --rg-line: #e5e8f4;
  --rg-soft: #f5f7ff;
  --rg-white: #ffffff;
  --rg-shadow: 0 18px 46px rgba(64, 63, 120, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  /* prevent the minmax(360px) grid columns from creating
     a horizontal scrollbar on sub-360px phones */
}

body {
  min-height: 100vh;
  font-family: var(--gx-font-body) ;
  color: var(--rg-ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(49, 93, 244, 0.1), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(139, 123, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfbff 0%, #ffffff 44%, #fbfbff 100%);
  padding: clamp(14px, 3vw, 34px);
  overflow-x: hidden;
}

.auth-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: stretch;
  animation: rise 0.5s ease both;
}

.card-surface {
  background: transparent;
}

.info-pane,
.form-pane {
  min-width: 0;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  box-shadow: var(--rg-shadow);
}

.info-pane {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: clamp(28px, 3vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(145deg, #2d53ed 0%, #2f67f6 58%, #3f80ff 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #edf2ff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.register-eyebrow-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

.info-pane h1 {
  max-width: 560px;
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.info-pane h1 span {
  color: #b6a8ff;
}

.info-pane h1 em {
  color: var(--rg-orange);
  font-style: normal;
}

.info-pane-copy {
  max-width: 500px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.72;
}

.auth-visual {
  position: relative;
  height: 230px;
  margin: 22px 0 20px;
}

.shield-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 180px;
  height: 208px;
  color: #eef2ff;
  background: linear-gradient(145deg, #91a5ff, #6d7dff);
  clip-path: polygon(50% 0%, 90% 16%, 82% 75%, 50% 100%, 18% 75%, 10% 16%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 22px 26px rgba(20, 35, 122, 0.28));
}

.shield-mark::before {
  content: "";
  position: absolute;
  inset: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  clip-path: inherit;
}

.shield-mark i {
  position: relative;
  z-index: 1;
  font-size: 4.1rem;
  text-shadow: 0 8px 16px rgba(18, 31, 108, 0.24);
}

.register-shield-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: width 0.3s ease, height 0.3s ease;
}

@media (max-width: 680px) {
  .register-shield-logo {
    width: 48px;
    height: 48px;
  }
}

.lock-mark {
  position: absolute;
  left: calc(50% + 78px);
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  color: #2f53e9;
  background: linear-gradient(145deg, #f6f8ff, #b8c4ff);
  box-shadow: 0 18px 28px rgba(20, 35, 122, 0.25);
  font-size: 2rem;
}

.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: rgba(255, 255, 255, 0.72);
}

.spark::before {
  width: 4px;
  height: 18px;
}

.spark::after {
  width: 18px;
  height: 4px;
}

.spark-one { left: 12%; top: 28%; }
.spark-two { right: 24%; top: 18%; transform: scale(0.75) rotate(45deg); }
.spark-three { right: 16%; bottom: 22%; transform: scale(0.9) rotate(45deg); }

.login-story-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.login-story-grid article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.login-story-grid article > span,
.brand-signoff i {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.login-story-grid strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.login-story-grid p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.52;
}

.brand-signoff {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.brand-signoff i {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

.form-pane {
  padding: clamp(26px, 3.4vw, 48px);
  background: rgba(255, 255, 255, 0.98);
}

.pane-head h2 {
  color: var(--rg-ink);
  font-size: clamp(1.8rem, 2vw, 2.65rem);
  line-height: 1.1;
}

.pane-head p {
  margin-top: 10px;
  color: var(--rg-muted);
  font-size: 1rem;
}

.register-guidance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 28px 0 20px;
  padding: 18px 22px;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7f8ff, #ffffff);
}

.register-guidance i {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--rg-blue);
  background: #eef2ff;
}

.register-guidance strong {
  color: var(--rg-ink);
  font-size: 0.95rem;
}

.register-guidance span {
  color: var(--rg-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: #fff;
}

.tab-btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #6f7690;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab-btn i {
  margin-right: 8px;
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(90deg, var(--rg-blue), var(--rg-blue-2));
  box-shadow: 0 10px 22px rgba(49, 93, 244, 0.23);
}

.auth-mode-register .login-only,
.auth-mode-login .register-only,
.auth-form.hidden-form {
  display: none !important;
}

.forms-container,
.auth-form {
  display: grid;
  gap: 14px;
}

.input-group {
  position: relative;
}

.input-group > i {
  position: absolute;
  left: 18px;
  top: 50%;
  color: #26304b;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-group input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  outline: none;
  color: var(--rg-ink);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 52px 14px 52px;
  box-shadow: 0 8px 18px rgba(67, 67, 100, 0.035);
}

.input-group input:focus {
  border-color: rgba(49, 93, 244, 0.62);
  box-shadow: 0 0 0 3px rgba(49, 93, 244, 0.12);
}

.input-group input.input-invalid {
  border-color: #dc4a4a;
  box-shadow: 0 0 0 3px rgba(220, 74, 74, 0.12);
}

.auth-form.details-locked .input-group input:not(.otp-input) {
  border-color: #d7dfef;
  background: #f4f7fc;
  color: #667085;
  cursor: not-allowed;
  -webkit-text-fill-color: #667085;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 16px rgba(67, 67, 100, 0.025);
}

.auth-form.details-locked .input-group > i,
.auth-form.details-locked .password-toggle {
  color: #98a2b3;
}

.auth-form.details-locked .password-toggle {
  cursor: not-allowed;
  opacity: 0.65;
}

.auth-form.details-locked .terms-check {
  color: #98a2b3;
  cursor: not-allowed;
}

.auth-form.details-locked .terms-check input {
  cursor: not-allowed;
  opacity: 0.65;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #59617a;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-guide {
  display: grid;
  gap: 10px;
  margin: -4px 0 2px;
  padding: 13px 15px;
  border: 1px solid #dbe5f7;
  border-radius: 14px;
  background: #f7f9ff;
}

.password-guide strong {
  color: var(--rg-ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

.password-guide strong span {
  color: var(--rg-blue);
  white-space: nowrap;
}

.password-guide ul {
  display: grid;
  gap: 7px;
  list-style: none;
}

.password-guide li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #68708c;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.password-guide li i {
  width: 16px;
  color: #b6bfd4;
  font-size: 0.48rem;
  text-align: center;
}

.password-guide li.rule-passed {
  color: #15803d;
}

.password-guide li.rule-passed i {
  color: #16a34a;
}

.password-guide li.rule-passed i::before {
  content: "";
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='m16 9-5.5 5.5L8 12' /%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='m16 9-5.5 5.5L8 12' /%3E%3C/svg%3E");
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-weight: 900;
  font-size: 0.9rem;
}

.password-guide li.rule-failed {
  color: #b42318;
}

.password-guide li.rule-failed i {
  color: #dc2626;
}

.password-guide li.rule-failed i::before {
  content: "";
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='m15 9-6 6' /%3E %3Cpath d='m9 9 6 6' /%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10' /%3E %3Cpath d='m15 9-6 6' /%3E %3Cpath d='m9 9 6 6' /%3E%3C/svg%3E");
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-weight: 900;
  font-size: 0.9rem;
}

.field-feedback {
  display: none;
  margin: -6px 0 2px;
}

.field-feedback.is-visible {
  display: block;
}

.feedback-list {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  color: #b43737;
  font-size: 0.82rem;
  font-weight: 700;
}

.terms-check,
.remember-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #68708c;
  font-size: 0.9rem;
  line-height: 1.55;
}

.terms-check input,
.remember-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rg-blue);
}

.terms-check a,
.forgot-link,
.login-assist-card a {
  color: var(--rg-blue);
  font-weight: 800;
  text-decoration: none;
}

.form-issue-box {
  padding: 13px 15px;
  border: 1px solid rgba(220, 74, 74, 0.18);
  border-radius: 8px;
  color: #a83232;
  background: #fff1f1;
}

.form-issue-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 800;
}

.otp-hidden-box {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f7ff;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.otp-hidden-box.show-otp {
  max-height: 260px;
  opacity: 1;
  padding: 14px;
  border-color: var(--rg-line);
}

.otp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--rg-ink);
  font-weight: 800;
}

.otp-header i {
  color: var(--rg-blue);
}

.otp-flex {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 10px);
}

.otp-input {
  width: clamp(38px, 10vw, 48px);
  height: 58px;
  padding: 0;
  border: 1.5px solid rgba(49, 93, 244, 0.4);
  border-radius: 12px;
  color: #11152f;
  background: #fff;
  text-align: center;
  font: 800 1.5rem/1 var(--gx-font-body);
  -webkit-text-fill-color: #11152f;
  appearance: textfield;
  -webkit-appearance: none;
  box-shadow: 0 4px 10px rgba(49, 93, 244, 0.08);
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: var(--rg-blue);
  box-shadow: 0 0 0 4px rgba(49, 93, 244, 0.15);
  outline: none;
}

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.otp-resend-btn {
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--rg-blue);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.otp-resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.otp-resend-status {
  color: var(--rg-muted);
  font-size: 0.82rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--rg-blue), var(--rg-blue-2));
  box-shadow: 0 16px 28px rgba(49, 93, 244, 0.25);
  font: inherit;
  font-size: 1.04rem;
  font-weight: 800;
  cursor: pointer;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.info-note-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  color: var(--rg-muted);
  background: #f8f9ff;
  font-size: 0.88rem;
  text-align: center;
}

.login-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 6px;
}

.forgot-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: right;
}

.register-assist-card,
.login-assist-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.register-assist-card h3,
.login-assist-card h3 {
  margin-bottom: 18px;
  color: var(--rg-ink);
  font-size: 1.05rem;
}

.after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.after-grid article,
.login-assist-card li {
  min-width: 0;
}

.after-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  color: var(--rg-blue);
  background: #eef2ff;
}

.after-grid strong {
  display: block;
  color: var(--rg-ink);
  font-size: 0.88rem;
}

.after-grid p {
  margin-top: 8px;
  color: var(--rg-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.login-assist-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
}

.login-assist-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--rg-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.login-assist-card li i {
  color: var(--rg-blue);
  margin-top: 3px;
}

body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}

.popup-modal,
.forgot-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 18, 46, 0.58);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.popup-modal {
  z-index: 3400;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: max(16px, env(safe-area-inset-top));
}

.popup-modal.show-popup,
.forgot-modal.show-forgot {
  opacity: 1;
  visibility: visible;
}

.popup-card,
.forgot-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 18, 46, 0.25);
  text-align: center;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.22s ease;
}

.popup-card {
  pointer-events: auto;
}

.show-popup .popup-card,
.show-forgot .forgot-card {
  transform: translateY(0) scale(1);
}

.popup-icon,
.forgot-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--rg-blue), var(--rg-blue-2));
  font-size: 1.8rem;
}

.forgot-icon {
  display: inline-grid;
}

.popup-card h3,
.forgot-card h3 {
  color: var(--rg-ink);
  font-size: 1.35rem;
}

.popup-card p,
.forgot-card p {
  margin: 10px 0 18px;
  color: var(--rg-muted);
  line-height: 1.6;
}

.forgot-card .input-group {
  margin-bottom: 16px;
}

.forgot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.popup-btn,
.forgot-btn {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.popup-btn,
.forgot-btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--rg-blue), var(--rg-blue-2));
}

.forgot-btn {
  color: var(--rg-ink);
  background: #f1f3fb;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  /* panels are stacked — remove body gutter so they fill edge-to-edge */
  body {
    padding: 0;
  }

  .auth-shell {
    width: 100%;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .info-pane {
    min-height: 0;
  }

  .auth-visual {
    height: 190px;
  }

  .login-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-story-grid article {
    display: block;
  }

  .login-story-grid article > span {
    margin-bottom: 10px;
  }
}

@media (max-width: 680px) {
  /* 980px already zeroes body padding; keep this block for panel-level styling only */
  .auth-panel {
    gap: 0;
  }

  .info-pane {
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
    color: var(--rg-ink);
    background:
      radial-gradient(circle at 50% 44%, rgba(49, 93, 244, 0.14), transparent 26%),
      linear-gradient(180deg, #fbfbff, #ffffff);
    padding: 24px 24px 10px;
    text-align: center;
  }

  .eyebrow {
    margin-inline: auto;
    color: var(--rg-blue);
    background: #eef2ff;
    border-color: transparent;
  }

  .info-pane h1 {
    margin-inline: auto;
    color: var(--rg-ink);
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .info-pane h1 span {
    color: var(--rg-purple);
  }

  .info-pane-copy {
    margin: 12px auto 0;
    color: var(--rg-muted);
    font-size: 0.9rem;
  }

  .auth-visual {
    height: 170px;
    margin: 8px 0 0;
  }

  .shield-mark {
    width: 128px;
    height: 148px;
  }

  .shield-mark i {
    font-size: 3rem;
  }

  .lock-mark {
    left: calc(50% + 50px);
    width: 56px;
    height: 56px;
    font-size: 1.45rem;
  }

  .login-story-grid,
  .brand-signoff {
    display: none;
  }

  .form-pane {
    margin: -8px 0 0;
    /* equal left/right padding so inputs are centred on all phone widths */
    padding: 22px 20px 24px;
    /* accommodate phone home-bar on modern devices */
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 28px rgba(64, 63, 120, 0.08);
  }

  .pane-head h2 {
    font-size: 1.55rem;
  }

  .register-guidance {
    margin: 16px 0 14px;
    padding: 12px;
  }

  .tab-buttons {
    margin-bottom: 14px;
  }

  .tab-btn {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .input-group input {
    min-height: 48px;
    font-size: 16px;
  }

  .after-grid,
  .login-story-grid {
    grid-template-columns: 1fr;
  }

  .register-assist-card,
  .login-assist-card {
    padding: 16px;
  }

  .login-helper-row {
    align-items: flex-start;
  }

  .forgot-actions {
    grid-template-columns: 1fr;
  }

  .popup-card,
  .forgot-card {
    padding: 22px 16px;
  }
}

@media (max-width: 390px) {
  .form-pane {
    /* tight screens: reduce horizontal padding just enough to prevent clipping */
    padding-inline: 14px;
  }

  .input-group input {
    /* reduce inner input padding on very small phones so text has room */
    padding-left: 44px;
    padding-right: 44px;
  }

  .tab-buttons {
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 4px;
  }

  .tab-btn {
    border-radius: 14px;
  }

  .otp-input {
    width: clamp(36px, 11vw, 44px);
    height: 52px;
  }
}

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

/* --------------------------------------------------------------------------
   Account entry redesign
   The authentication controls above intentionally retain their original IDs
   and states; these rules only reshape the public-facing experience.
   -------------------------------------------------------------------------- */
body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  font-family: "Inter", Arial, sans-serif !important;
  padding: clamp(12px, 1.35vw, 24px);
  background:
    radial-gradient(circle at 8% 92%, rgba(22, 96, 255, .58), transparent 27%),
    radial-gradient(circle at 89% 2%, rgba(104, 198, 255, .68), transparent 31%),
    linear-gradient(135deg, #0b59e9 0%, #2f84f2 52%, #d9f1ff 100%);
}

.auth-shell {
  width: min(1440px, 100%);
}

.auth-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(6, 38, 113, .23);
}

.info-pane,
.form-pane {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.info-pane {
  display: block !important;
  isolation: isolate;
  min-height: 890px;
  padding: clamp(42px, 4vw, 58px);
  background:
    radial-gradient(circle at 8% 6%, rgba(91, 197, 255, .36), transparent 25%),
    radial-gradient(circle at 88% 41%, rgba(130, 204, 255, .21), transparent 17%),
    linear-gradient(142deg, #0755e4 0%, #0646d6 47%, #0577ee 100%);
}

.info-pane::before,
.info-pane::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 18px solid rgba(135, 205, 255, .12);
  border-radius: 25px;
  transform: rotate(45deg);
}

.info-pane::before { width: 54px; height: 54px; right: 11%; top: 27%; }
.info-pane::after { width: 38px; height: 38px; right: 28%; top: 44%; }

.auth-brand { display: none; }

.info-copy-wrap,
.login-story-grid,
.brand-signoff { position: relative; z-index: 2; }

.info-pane .eyebrow {
  display: none;
}

.info-pane h1 {
  max-width: 570px;
  font-family: var(--gx-font-display, "Manrope", sans-serif);
  font-size: clamp(2.65rem, 3.7vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.06;
}

.info-pane h1 span {
  color: #73cef9;
}

.info-pane h1 em {
  color: #ffc21b;
}

.info-pane-copy {
  max-width: 365px;
  margin-top: 21px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.auth-visual {
  position: absolute;
  z-index: 1;
  inset: auto auto -3% 20%;
  width: 105%;
  height: auto;
  margin: 0;
  pointer-events: none;
}

.auth-visual picture,
.auth-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.login-story-grid {
  position: absolute;
  left: clamp(42px, 4vw, 58px);
  top: 40%;
  width: min(260px, 43%);
  gap: 26px;
  margin: 0;
}

.login-story-grid article { gap: 13px; }

.login-story-grid article > span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: rgba(144, 203, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}

.login-story-grid strong {
  font-size: .98rem;
  font-weight: 800;
}

.login-story-grid p {
  max-width: 178px;
  margin-top: 6px;
  color: rgba(255, 255, 255, .94);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.5;
}

.brand-signoff { display: none; }

.form-pane {
  display: flex;
  flex-direction: column;
  min-height: 890px;
  padding: clamp(38px, 4.3vw, 62px) clamp(30px, 3.3vw, 52px) 32px;
  background: linear-gradient(145deg, #fff 0%, #fdfdff 72%, #f5f8ff 100%);
}

.form-pane > * { width: 100%; }

.pane-head h2 {
  font-family: var(--gx-font-display, "Manrope", sans-serif);
  color: #06134d;
  font-size: clamp(2rem, 2.35vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

.pane-head p {
  margin-top: 8px;
  color: #617197;
  font-size: 1rem;
  font-weight: 500;
}

.tab-buttons {
  margin: 25px 0 20px;
  padding: 2px;
  border-color: #bdd3ff;
  background: #f2f6ff;
  box-shadow: inset 0 1px 2px rgba(38, 90, 195, .05);
}

.tab-btn {
  min-height: 48px;
  color: #0754e9;
  font-size: .92rem;
  font-weight: 700;
}

.tab-btn lucide-icon { margin-right: 8px; vertical-align: -2px; }

.tab-btn.active {
  background: linear-gradient(100deg, #1567f6, #0649dc);
  box-shadow: 0 7px 17px rgba(14, 78, 220, .3);
}

.forms-container,
.auth-form { gap: 12px; }

.input-group > lucide-icon {
  position: absolute;
  z-index: 1;
  left: 18px;
  top: 50%;
  color: #51648f;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-group input {
  min-height: 50px;
  border-color: #bdd3ff;
  color: #13275a;
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
}

.input-group input::placeholder { color: #68789e; opacity: 1; }

.input-group input:focus {
  border-color: #1663f4;
  box-shadow: 0 0 0 3px rgba(22, 99, 244, .12);
}

.password-toggle { color: #52658e; }

.password-guide {
  gap: 7px;
  margin: 0;
  padding: 11px 18px;
  border-color: #bdd3ff;
  border-radius: 14px;
  background: linear-gradient(110deg, #f8fbff, #eef5ff);
}

.password-guide strong { color: #07164d; }
.password-guide strong span { color: #075bea; }
.password-guide ul { gap: 5px; }
.password-guide li { color: #1c3065; font-size: .82rem; font-weight: 500; }
.password-guide li lucide-icon { color: #63759d; font-size: .84rem; }

.terms-check,
.remember-check {
  color: #5d6e94;
  font-size: .86rem;
}

.terms-check a,
.forgot-link,
.login-assist-card a { color: #075bea; }

.action-btn {
  min-height: 52px;
  background: linear-gradient(100deg, #176afb, #0345d9);
  box-shadow: 0 13px 22px rgba(8, 77, 224, .23);
  font-size: .98rem;
}

.action-btn .button-arrow { display: none; }

.info-note-mini {
  display: none;
}

.register-assist-card,
.login-assist-card {
  margin-top: 20px;
  padding: 20px;
  border-color: #e4eaf5;
  border-radius: 17px;
  background: linear-gradient(120deg, #fff, #f8fbff);
  box-shadow: 0 8px 19px rgba(22, 48, 103, .06);
}

.register-assist-card h3,
.login-assist-card h3 {
  margin-bottom: 15px;
  color: #07154b;
  font-size: 1.08rem;
}

.after-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.after-grid span { width: 38px; height: 38px; margin-bottom: 9px; border-radius: 10px; }
.after-grid strong { color: #07154b; font-size: .82rem; }
.after-grid p { margin-top: 5px; color: #65749a; font-size: .75rem; line-height: 1.45; }

.mobile-auth-alternate { display: none; }

body:has(.auth-shell) .after-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body:has(.auth-shell) .info-pane .auth-visual,
body:has(.auth-shell) .info-pane .login-story-grid {
  position: absolute !important;
}

body:has(.auth-shell) .info-pane {
  display: block !important;
  align-content: initial !important;
}

@media (max-width: 980px) {
  body {
    display: block;
    padding: 0;
    background: #eaf3ff;
  }

  .auth-shell { width: 100%; }

  .auth-panel {
    display: block;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .info-pane {
    min-height: clamp(395px, 66vw, 530px);
    padding: 24px clamp(20px, 6vw, 54px) 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 5% 1%, rgba(108, 213, 255, .36), transparent 25%),
      radial-gradient(circle at 85% 20%, rgba(99, 198, 255, .28), transparent 22%),
      linear-gradient(142deg, #0344d4, #096bf0 86%);
  }

  .info-pane::before { width: 28px; height: 28px; right: 13%; top: 31%; border-width: 10px; }
  .info-pane::after { display: none; }

  .auth-brand {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
  }

  .auth-brand img { width: 48px; height: 48px; object-fit: contain; }
  .auth-brand span { display: grid; gap: 1px; }
  .auth-brand strong { font-family: var(--gx-font-display, "Manrope", sans-serif); font-size: 1.2rem; letter-spacing: .015em; }
  .auth-brand small { font-size: .58rem; font-weight: 500; }

  .info-copy-wrap { margin-top: 21px; }
  .info-pane h1 { max-width: min(60%, 430px); font-size: clamp(1.82rem, 5.8vw, 2.65rem); }
  .info-pane-copy { max-width: min(51%, 330px); margin-top: 14px; font-size: clamp(.82rem, 2.35vw, 1rem); line-height: 1.55; }
  .auth-visual { inset: auto -7% -2% auto; width: min(70%, 505px); aspect-ratio: 4103 / 3744; }
  .auth-visual picture { display: none; }
  .login-story-grid,
  .brand-signoff { display: none; }

  .form-pane {
    position: relative;
    z-index: 4;
    min-height: 0;
    margin-top: -12px;
    padding: clamp(30px, 5vw, 45px) clamp(22px, 6.5vw, 58px) max(28px, env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }
}

@media (max-width: 680px) {
  .info-pane { min-height: 480px; padding: 22px 22px 0; }
  .auth-brand img { width: 43px; height: 43px; }
  .auth-brand strong { font-size: 1.12rem; }
  .info-copy-wrap { margin-top: 20px; }
  .info-pane h1 { max-width: 62%; margin-inline: 0; font-size: clamp(1.72rem, 8.2vw, 2.16rem); }
  .info-pane-copy { max-width: 55%; margin-inline: 0; font-size: .88rem; }
  .auth-visual { right: -25%; width: 79%; bottom: -1%; }

  .form-pane { padding: 29px 21px max(26px, env(safe-area-inset-bottom)); }
  .pane-head h2 { font-size: clamp(1.72rem, 7.7vw, 2.1rem); }
  .pane-head p { font-size: .91rem; }
  .tab-buttons { display: none; }
  .forms-container,
  .auth-form { gap: 11px; }
  .input-group input { min-height: 51px; font-size: 16px; }
  .password-guide { padding: 12px 16px; }
  .password-guide li { font-size: .79rem; }
  .terms-check { font-size: .82rem; }
  .action-btn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; min-height: 56px; font-size: 1rem; }
  .action-btn > lucide-icon:first-child { justify-self: end; }
  .action-btn > span { justify-self: center; }
  .action-btn .button-arrow { display: block; justify-self: start; }
  .info-note-mini { display: none; }

  .mobile-auth-alternate {
    display: grid;
    gap: 12px;
    margin-top: 2px;
    text-align: center;
  }

  .mobile-auth-alternate > span {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 13px;
    color: #617197;
    font-size: .76rem;
  }

  .mobile-auth-alternate > span::before,
  .mobile-auth-alternate > span::after { content: ""; height: 1px; background: #b9caed; }
  .mobile-auth-alternate button {
    min-height: 47px;
    border: 1px solid #b8d0ff;
    border-radius: 999px;
    color: #075bea;
    background: #f5f8ff;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-auth-alternate button lucide-icon { margin-right: 8px; vertical-align: -2px; }

  .register-assist-card,
  .login-assist-card { margin-top: 20px; padding: 18px 15px; border-radius: 17px; background: linear-gradient(135deg, #f8fbff, #edf5ff); }
  .register-assist-card h3,
  .login-assist-card h3 { margin: 0 5px 15px; font-size: 1rem; }
  .after-grid { gap: 0; }
  .after-grid article { padding: 0 8px; }
  .after-grid article + article { border-left: 1px solid #d4e1fa; }
  .after-grid span { width: 34px; height: 34px; margin-bottom: 8px; }
  .after-grid strong { font-size: .72rem; line-height: 1.25; }
  .after-grid p { font-size: .68rem; line-height: 1.42; }
}

@media (max-width: 390px) {
  .info-pane { min-height: 470px; padding-inline: 17px; }
  .info-pane h1 { font-size: 1.65rem; }
  .form-pane { padding-inline: 16px; }
  .after-grid article { padding-inline: 6px; }
  .after-grid p { font-size: .64rem; }
}

/* This page includes the site-wide responsive safety sheet after this file.
   Keep the dedicated auth composition authoritative at its narrow breakpoint. */
@media (max-width: 980px) {
  body:has(.auth-shell) .info-pane {
    display: block !important;
    min-height: clamp(395px, 66vw, 530px) !important;
    padding: 24px clamp(20px, 6vw, 54px) 0 !important;
  }

  body:has(.auth-shell) .info-pane .auth-visual {
    position: absolute !important;
    z-index: 1 !important;
    inset: auto -7% -2% auto !important;
    width: min(70%, 505px) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body:has(.auth-shell) .form-pane {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: -12px 0 0 !important;
    padding: clamp(30px, 5vw, 45px) clamp(22px, 6.5vw, 58px) max(28px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
  }
}

@media (max-width: 680px) {
  body:has(.auth-shell) .info-pane {
    min-height: 480px !important;
    padding: 22px 22px 0 !important;
  }

  body:has(.auth-shell) .info-pane .auth-visual {
    right: -25% !important;
    bottom: -1% !important;
    width: 79% !important;
  }

  body:has(.auth-shell) .auth-brand { margin-inline: 0 !important; }
  body:has(.auth-shell) .info-pane h1 { margin-inline: 0 !important; text-align: left !important; }
  body:has(.auth-shell) .info-pane-copy { margin-inline: 0 !important; text-align: left !important; }

  body:has(.auth-shell) .tab-buttons { display: none !important; }
  body:has(.auth-shell) .after-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 0 !important; }
  body:has(.auth-shell) .form-pane { padding: 29px 21px max(26px, env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 390px) {
  body:has(.auth-shell) .info-pane { min-height: 470px !important; padding-inline: 17px !important; }
  body:has(.auth-shell) .form-pane { padding-inline: 16px !important; }
}

/* Layout refinement: spacing, alignment and mascot placement only.
   The site-wide sheets add a bottom margin and automatic hyphenation to every
   paragraph; both are neutralised here so the auth copy wraps on whole words. */
body:has(.auth-shell) .info-pane-copy,
body:has(.auth-shell) .login-story-grid p {
  margin-bottom: 0;
}

body:has(.auth-shell) .info-pane-copy,
body:has(.auth-shell) .login-story-grid p { hyphens: manual; }

/* No decorative shapes on the blue panel. */
body:has(.auth-shell) .info-pane::before,
body:has(.auth-shell) .info-pane::after { content: none !important; }

@media (min-width: 981px) {
  /* Left panel, top to bottom: heading, description, mascot, then the three
     features side by side. Each part owns its own grid row, so nothing can
     overlap; the mascot takes whatever height the form leaves it. */
  body:has(.auth-shell) .info-pane {
    --auth-pad: clamp(28px, 2.4vw, 36px);
    container-type: inline-size;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch !important;
    min-height: 0;
    padding: var(--auth-pad) !important;
  }

  body:has(.auth-shell) .info-copy-wrap { grid-area: 1 / 1; }

  /* The transparent asset is only repositioned and scaled proportionally.
     .866 caps the height so the artwork never grows wider than the panel. */
  body:has(.auth-shell) .info-pane .auth-visual {
    position: relative !important;
    grid-area: 2 / 1;
    align-self: center;
    inset: auto !important;
    width: auto !important;
    height: 100% !important;
    min-height: clamp(280px, 66cqw, 440px);
    max-height: calc((100cqw + 2 * var(--auth-pad) - 16px) * .866);
    margin: 14px 0 !important;
  }

  body:has(.auth-shell) .auth-visual picture { display: contents; }

  /* The character occupies the left 85% of the image; -43% centres it. */
  body:has(.auth-shell) .auth-visual img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(-43%);
  }

  body:has(.auth-shell) .info-pane .login-story-grid {
    position: relative !important;
    grid-area: 3 / 1;
    top: auto;
    left: auto;
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
  }

  body:has(.auth-shell) .login-story-grid article {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  body:has(.auth-shell) .login-story-grid article > span { width: 46px; height: 46px; }

  /* #authPanel outranks the site-wide !important paragraph size. */
  body:has(.auth-shell) #authPanel .login-story-grid p {
    max-width: none;
    margin-top: 3px;
    font-size: .82rem !important;
    line-height: 1.5 !important;
  }

  /* Right panel: same controls, tighter vertical rhythm. */
  body:has(.auth-shell) .form-pane {
    min-height: 0;
    padding: clamp(26px, 2.2vw, 34px) clamp(28px, 2.4vw, 40px) clamp(22px, 1.9vw, 28px) !important;
  }

  body:has(.auth-shell) .auth-mode-login .form-pane { justify-content: center; }

  body:has(.auth-shell) .pane-head h2 { margin-bottom: 0; }
  body:has(.auth-shell) .pane-head p { margin: 6px 0 0; }
  body:has(.auth-shell) .tab-buttons { margin: 16px 0 12px; }
  body:has(.auth-shell) .tab-btn { min-height: 44px; padding-inline: 12px; white-space: nowrap; }
  body:has(.auth-shell) .forms-container,
  body:has(.auth-shell) .auth-form { gap: 10px; }
  body:has(.auth-shell) .input-group input { min-height: 48px; padding-top: 11px; padding-bottom: 11px; }
  body:has(.auth-shell) .password-guide { gap: 4px; padding-block: 8px; }
  body:has(.auth-shell) .password-guide ul { gap: 1px; }
  body:has(.auth-shell) .password-guide li { line-height: 1.45 !important; }
  body:has(.auth-shell) .register-assist-card,
  body:has(.auth-shell) .login-assist-card { margin-top: 12px; padding: 14px 18px; }
  body:has(.auth-shell) .register-assist-card h3,
  body:has(.auth-shell) .login-assist-card h3 { margin-bottom: 10px; }
  body:has(.auth-shell) .after-grid span { margin-bottom: 6px; }
  body:has(.auth-shell) .after-grid p { margin-bottom: 0; hyphens: manual; }
  body:has(.auth-shell) .login-assist-card li { hyphens: manual; }
  body:has(.auth-shell) .login-assist-card ul { gap: 8px; }
}

@media (max-width: 980px) {
  /* The hero becomes a grid so the Android mascot owns a cell of its own:
     beside the copy on tablets, below it on phones. */
  body:has(.auth-shell) .info-pane {
    display: grid !important;
    grid-template-columns: minmax(0, 54%) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch !important;
  }

  body:has(.auth-shell) .auth-brand { grid-area: 1 / 1; justify-self: start; }
  body:has(.auth-shell) .auth-brand { gap: 11px; text-align: left; }
  /* The animation is drawn to a canvas with its white background removed. */
  body:has(.auth-shell) .auth-brand-animation {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    opacity: 0;
    transition: opacity .25s ease;
  }

  body:has(.auth-shell) .auth-brand-animation.is-ready { opacity: 1; }

  body:has(.auth-shell) .auth-brand-animation canvas {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(3, 30, 110, .3));
  }

  body:has(.auth-shell) .auth-brand-animation video {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  body:has(.auth-shell) .auth-brand > span:last-child { gap: 3px; justify-items: start; }
  body:has(.auth-shell) .auth-brand strong { font-size: 1.16rem; font-weight: 800; letter-spacing: .09em; line-height: 1.1; }
  body:has(.auth-shell) .auth-brand small {
    color: rgba(255, 255, 255, .82) !important;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
  }
  body:has(.auth-shell) .info-copy-wrap { grid-area: 2 / 1; }

  body:has(.auth-shell) .info-pane .auth-visual {
    grid-area: 1 / 2 / 4 / 3;
    inset: 12px calc(-1 * clamp(20px, 6vw, 54px) + 8px) 0 0 !important;
    width: auto !important;
    aspect-ratio: auto;
    background-position: right bottom;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  body:has(.auth-shell) .info-pane h1,
  body:has(.auth-shell) .info-pane-copy { max-width: none !important; }
}

@media (max-width: 680px) {
  /* Heading and description keep the full width; the mascot takes the
     lower-right corner of whatever height remains beneath them. */
  body:has(.auth-shell) .info-pane {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(clamp(210px, 60vw, 300px), 1fr);
  }

  body:has(.auth-shell) .info-pane .auth-visual {
    grid-area: 3 / 1;
    inset: 4px -14px 0 0 !important;
  }
}
