/*
 * MVLCO registration page (/register) only — loaded by Register.razor after mvlco-login.css (the shared two-column
 * shell). Every rule is scoped to .mv-register, so the sign-in page and the rest of the site are unaffected.
 */

/* ── Shell: wider form column, light curves on the promo side ─────────── */
.mv-register { padding: 28px 0 56px; background: linear-gradient(180deg, #f4f8ff 0%, #e8f0fd 100%); }
.mv-register__backdrop {
  inset: -20% 52% 18% -18%; border-radius: 0 50% 50% 0;
  background: radial-gradient(120% 90% at 0% 40%, #ffffff 0%, #eaf2ff 55%, #cfe0fb 100%);
  box-shadow: inset -2px 0 0 rgba(0, 86, 214, 0.12);
}
.mv-register__backdrop::before { inset: 6% 4% 6% auto; width: 60%; border-left: 0; border-right: 2px solid rgba(0, 86, 214, 0.18); border-radius: 0 50% 50% 0; }
.mv-register__backdrop::after { display: none; }
.mv-register__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 700px); gap: 40px; align-items: start; }

/* ── Promo ─────────────────────────────────────────────────────────── */
.mv-register__promo { padding-top: 34px; }
.mv-register__badge { text-transform: uppercase; font-weight: 600; letter-spacing: .3px; font-size: 14px; }
.mv-register .mv-login__headline { font-size: clamp(32px, 3.6vw, 50px); }
.mv-register .mv-login__lead { margin-top: 18px; }
.mv-register__art { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 30px; filter: drop-shadow(0 18px 28px rgba(0, 30, 90, 0.22)); }

/* ── Card ──────────────────────────────────────────────────────────── */
.mv-register__card { padding: 26px 30px 24px; }
.mv-register__brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 8px; text-decoration: none; }
.mv-register__brand img { width: 44px; height: auto; }
.mv-register__brand span { font-family: var(--mvlco-font-heading, Poppins, sans-serif); font-size: 14px; font-weight: 600; color: #003399; }
.mv-register__brand:focus-visible { outline: 3px solid rgba(0, 86, 214, 0.45); outline-offset: 3px; border-radius: 6px; }
.mv-register__title { font-size: 28px; margin-bottom: 4px; }
.mv-register__sub { font-size: 14.5px; margin-bottom: 16px; }
.mv-register__card .mv-auth__alert { margin: 0 0 12px; }

.mv-register__form { display: grid; gap: 10px; }
.mv-register .mv-reg__section { padding: 12px 16px 14px; gap: 8px; border-radius: 14px; border-color: #dfe8f7; background: #fbfcff; }
.mv-register .mv-reg__section:focus-within { border-color: #b9ccf0; box-shadow: 0 8px 22px rgba(0, 51, 153, 0.07); }
.mv-register .mv-reg__legend { font-size: 15.5px; margin-bottom: 0; }
.mv-register .mv-reg__step { width: 26px; height: 26px; font-size: 13px; }
.mv-register__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-items: start; }
.mv-register__field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.mv-register__field > label, .mv-register .mv-reg__label { font-size: 13.5px; font-weight: 500; color: var(--mvlco-deep-blue, #002B80); }
.mv-register__hint { font-size: 12px; color: #5b6886; }
.mv-register__hint.is-ok { color: #1e8e3e; }
.mv-register__hint.is-error { color: #c62828; }

/* Inputs: one bordered control; an icon cell (and +91 for India) on the left, the eye on the right. */
.mv-register__control {
  display: flex; align-items: stretch; min-width: 0; border: 1px solid #cfdbf2; border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mv-register__control:focus-within { border-color: var(--mvlco-primary, #0056D6); box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.13); }
.mv-register__prefix {
  display: grid; place-items: center; flex: none; width: 40px; border-right: 1px solid #e1e8f5; color: #2a3f6b; font-size: 14px;
  background: #f6f9ff; border-radius: 10px 0 0 10px;
}
.mv-register__dial { display: inline-flex; align-items: center; padding: 0 10px; border-right: 1px solid #e1e8f5; font-weight: 600; font-size: 14px; color: var(--mvlco-deep-blue, #002B80); }
.mv-register__dial[hidden] { display: none; }
.mv-register__input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #15213d;
  font-family: inherit; font-size: 14px;
}
.mv-register__input::placeholder { color: #8390aa; }
.mv-register__input:focus { outline: none; }
/* Name fields have no icon: the input itself is the bordered control. */
.mv-register__field > .mv-register__input { height: 42px; border: 1px solid #cfdbf2; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.mv-register__field > .mv-register__input:focus { border-color: var(--mvlco-primary, #0056D6); box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.13); }
.mv-register__input:user-invalid, .mv-register__control:has(.mv-register__input:user-invalid) { border-color: #c62828; }
.mv-register__control .mv-register__input:user-invalid { border: 0; }
.mv-register__select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23002B80' stroke-width='1.8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.mv-register__eye { flex: none; width: 40px; border: 0; border-radius: 0 10px 10px 0; background: transparent; color: #2a3f6b; cursor: pointer; }
.mv-register__eye:hover, .mv-register__eye:focus-visible { color: var(--mvlco-primary, #0056D6); background: rgba(0, 86, 214, 0.07); outline: none; }

/* Gender pills, slightly smaller than the global ones. */
.mv-register .mv-reg__choice span { padding: 7px 22px; font-size: 13.5px; }
.mv-register .mv-reg__choice input:checked + span { background: #eaf2ff; color: var(--mvlco-primary, #0056D6); border-color: var(--mvlco-primary, #0056D6); box-shadow: 0 0 0 3px rgba(0, 86, 214, 0.10); }
.mv-register .mv-reg__meter { height: 4px; margin-top: 2px; }

/* Consent, button, footnotes. */
.mv-register__terms { display: flex; gap: 10px; align-items: flex-start; padding: 4px 2px; font-size: 13px; color: #33405e; cursor: pointer; }
.mv-register__terms input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--mvlco-primary, #0056D6); }
.mv-register__terms a { color: var(--mvlco-primary, #0056D6); font-weight: 600; }
.mv-register__terms a:focus-visible, .mv-register__switch a:focus-visible { outline: 3px solid rgba(0, 86, 214, 0.45); outline-offset: 2px; border-radius: 3px; }
.mv-register__submit {
  justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; height: 48px;
  border: 0; border-radius: 999px; background: linear-gradient(90deg, #0047c2, #0a63ec); color: #fff; cursor: pointer;
  font-family: var(--mvlco-font-heading, Poppins, sans-serif); font-size: 16px; font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 71, 194, 0.30); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.mv-register__submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(0, 71, 194, 0.36); }
.mv-register__submit:focus-visible { outline: 3px solid rgba(0, 86, 214, 0.45); outline-offset: 3px; }
.mv-register__submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.mv-register__note { margin: 0; text-align: center; font-size: 12.5px; color: #4a5878; }
.mv-register__switch { margin: 12px 0 0; text-align: center; font-size: 14px; color: #33405e; }
.mv-register__switch a { font-weight: 700; color: var(--mvlco-primary, #0056D6); }

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .mv-register__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 600px); gap: 28px; }
  .mv-register__promo { padding-top: 16px; }
  .mv-register__art { max-width: 420px; }
}
@media (max-width: 991px) {
  .mv-register__inner { grid-template-columns: 1fr; }
  .mv-register__card { max-width: 700px; }
  .mv-register__backdrop { inset: 0 -30% 60% -30%; border-radius: 0 0 50% 50% / 0 0 30% 30%; background: linear-gradient(160deg, #0b3a96, #1556c8 55%, #5c97f5); }
  .mv-register__backdrop::before { display: none; }
  .mv-register__promo { padding-top: 0; }
  .mv-register__art { display: none; }
}

/* ── Phone ─────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .mv-register { padding: 16px 0 32px; }
  .mv-register__card { padding: 20px 14px 18px; }
  .mv-register__title { font-size: 22px; }
  .mv-register__brand span { font-size: 12.5px; }
  .mv-register__pair { grid-template-columns: 1fr; }
  .mv-register .mv-reg__section { padding: 12px 12px 14px; }
  .mv-register__submit { max-width: none; }
}
