@font-face {
  font-family: "MahaVivah Sans";
  src: url("../fonts/NotoSansDevanagari.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* MahaVivah authentication pages. Self-hosted: compatible with style-src 'self'. */
.mv-auth {
  --mva-brand: #81213f;
  --mva-ink: #30262b;
  --mva-muted: #71636a;
  --mva-line: #e8dde1;
  padding: 40px 20px 48px;
  color: var(--mva-ink);
  font-family: "MahaVivah Sans", system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", Mangal, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.mv-auth, .mv-auth * { box-sizing: border-box; }
.mv-auth .mv-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--mva-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(75, 30, 47, .07);
  overflow: hidden;
}
.mv-auth--register .mv-auth-shell { max-width: 1110px; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
.mv-auth .mv-auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 34px;
  background: #fbf3ee;
  border-right: 1px solid #f0e3df;
  overflow: hidden;
}
.mv-auth-story::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid #ead3c3;
  border-radius: 50%;
  bottom: -170px;
  left: -100px;
  box-shadow: 0 0 0 24px #fbf3ee, 0 0 0 25px #efdfd3, 0 0 0 52px #fbf3ee, 0 0 0 53px #f1e3d9;
  pointer-events: none;
}
.mv-auth-story > * { position: relative; z-index: 1; }
.mv-auth .mv-auth-logo { width: 76px; height: 76px; object-fit: contain; padding: 7px; background: #fff; border: 1px solid #ecdcd7; border-radius: 18px; margin-bottom: 25px; }
.mv-auth .mv-auth-greeting { margin: 0 0 6px; color: #8c5c40; font-size: 14px; font-weight: 600; }
.mv-auth .mv-auth-brand { margin: 0 0 12px; color: var(--mva-brand); font-size: 30px; font-weight: 750; letter-spacing: -.8px; line-height: 1.2; }
.mv-auth .mv-auth-community { margin: 0; max-width: 24ch; font-size: 17px; line-height: 1.75; font-weight: 600; }
.mv-auth .mv-auth-rule { width: 42px; height: 3px; margin: 28px 0; background: #bb864a; border-radius: 2px; }
.mv-auth .mv-auth-quote { margin: 0 0 14px; max-width: 16ch; font-size: 27px; line-height: 1.6; font-weight: 600; color: #62213a; }
.mv-auth .mv-auth-description { margin: 0; color: #76615e; font-size: 14px; max-width: 30ch; line-height: 1.9; }
.mv-auth .mv-auth-story-bottom { margin: auto 0 0; padding-top: 56px; color: #7d5c51; font-size: 12px; letter-spacing: .04em; }
.mv-auth .mv-auth-main { min-width: 0; padding: 34px 38px; }
.mv-auth .mv-auth-heading { margin-bottom: 22px; }
.mv-auth .mv-auth-eyebrow { margin: 0 0 5px; color: #916b50; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mv-auth .mv-auth-title { margin: 0 0 7px; color: #542037; font-size: 29px; font-weight: 750; line-height: 1.45; }
.mv-auth .mv-auth-subtitle { margin: 0; color: var(--mva-muted); font-size: 14px; }
.mv-auth a { color: var(--mva-brand); text-underline-offset: 3px; }
.mv-auth a:hover { color: #57142b; text-decoration: underline; }
.mv-auth a:focus-visible, .mv-auth button:focus-visible, .mv-auth input:focus-visible, .mv-auth select:focus-visible { outline: 3px solid #c895a6; outline-offset: 3px; }
.mv-auth .mv-auth-google > div { padding: 16px !important; margin: 0 !important; border: 1px solid var(--mva-line) !important; border-radius: 12px !important; background: #fcfafb; }
.mv-auth .mv-auth-google .form-check { margin: 0 0 12px !important; }
.mv-auth .mv-auth-google .form-check-label { font-size: 12px; line-height: 1.7; }
.mv-auth .mv-auth-google .btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #c9c0c4; border-radius: 8px; background: #fff; color: #332f32; font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.03); transform: none; cursor: pointer; }
.mv-auth .mv-auth-google .btn:hover { border-color: #987c87; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.06); }
.mv-auth .mv-auth-google svg { flex: 0 0 20px; }
.mv-auth .mv-auth-google p { font-size: 11px; line-height: 1.65; color: var(--mva-muted); margin: 10px 0 0 !important; }
.mv-auth .mv-auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--mva-muted); font-size: 12px; }
.mv-auth-divider::before, .mv-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--mva-line); }
.mv-auth .mv-auth-form { margin: 0; }
.mv-auth .mv-auth-field { min-width: 0; margin-bottom: 18px; }
.mv-auth .mv-auth-label, .mv-auth .form-label { display: block; margin: 0 0 7px; font-weight: 600; font-size: 13px; color: #49313c; }
.mv-auth .mv-auth-optional { font-size: 11px; color: var(--mva-muted); font-weight: 400; }
.mv-auth .mv-auth-input, .mv-auth .form-control, .mv-auth .form-select {
  display: block; width: 100%; min-height: 46px; padding: 10px 13px;
  border: 1px solid #d8cbd1; border-radius: 8px; background: #fff; color: var(--mva-ink);
  font: inherit; font-size: 15px; line-height: 1.5; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.mv-auth .mv-auth-input:hover, .mv-auth .form-control:hover, .mv-auth .form-select:hover { border-color: #a68996; }
.mv-auth .mv-auth-input:focus, .mv-auth .form-control:focus, .mv-auth .form-select:focus { outline: none; border-color: var(--mva-brand); box-shadow: 0 0 0 3px #f5e6eb; }
.mv-auth input::placeholder { color: #8e8188; opacity: 1; font-size: 13px; }
.mv-auth input[readonly] { background: #f5f2f3; color: #65585e; }
.mv-auth select { cursor: pointer; }
.mv-auth .mv-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mv-auth .mv-auth-label-row a { font-size: 12px; font-weight: 500; }
.mv-auth .mv-auth-password { position: relative; }
.mv-auth .mv-auth-password.mv-auth-has-toggle input { padding-right: 77px; }
.mv-auth .mv-auth-toggle { position: absolute; right: 4px; top: 3px; bottom: 3px; min-width: 62px; padding: 4px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--mva-brand); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.mv-auth .mv-auth-toggle:hover { background: #f8edf1; }
.mv-auth .mv-auth-toggle[hidden] { display: none; }
.mv-auth .mv-auth-hint { margin: 6px 0 0; color: var(--mva-muted); font-size: 12px; line-height: 1.6; }
.mv-auth .mv-auth-captcha { min-width: 0; margin: 4px 0 18px; }
.mv-auth .mv-auth-captcha .mb-3 { margin-bottom: 0 !important; }
.mv-auth .mv-auth-captcha:empty { display: none; }
.mv-auth .mv-auth-captcha .form-control { max-width: 100%; }
.mv-auth .form-check, .mv-auth .mv-auth-check { display: flex; align-items: flex-start; gap: 9px; padding: 0; margin: 0; }
.mv-auth .form-check-input, .mv-auth .mv-auth-check input { appearance: auto; flex: 0 0 17px; width: 17px; height: 17px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: var(--mva-brand); cursor: pointer; }
.mv-auth .mv-auth-check label { display: block; margin: 0; color: #68565f; font-size: 12px; line-height: 1.75; }
.mv-auth .mv-auth-consents { display: grid; gap: 9px; margin: 20px 0; }
.mv-auth .mv-auth-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 48px; padding: 12px 18px;
  border: 1px solid var(--mva-brand); border-radius: 8px; background: var(--mva-brand); color: #fff;
  font: inherit; font-size: 15px; font-weight: 650; line-height: 1.5; cursor: pointer;
  box-shadow: 0 3px 8px rgba(129,33,63,.12);
}
.mv-auth .mv-auth-submit:hover { background: #6c1834; border-color: #6c1834; }
.mv-auth .mv-auth-submit:disabled { opacity: .65; cursor: wait; }
.mv-auth .mv-auth-bottom { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--mva-line); text-align: center; font-size: 13px; color: var(--mva-muted); }
.mv-auth .mv-auth-bottom a { margin-left: 5px; font-weight: 700; white-space: nowrap; }
.mv-auth .mv-auth-help { margin: 16px auto 0; text-align: center; color: #78666f; font-size: 12px; }
.mv-auth .mv-auth-help a { margin-left: 5px; }
.mv-auth .mv-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.mv-auth .mv-auth-grid .mv-auth-field { margin: 0; }
.mv-auth .mv-auth-fieldset { min-width: 0; padding: 0; border: 0; margin: 0 0 23px; }
.mv-auth .mv-auth-fieldset legend { display: block; float: none; width: 100%; margin: 0 0 14px; padding: 0 0 9px; border-bottom: 1px solid #efe7ea; color: #55323f; font-size: 14px; font-weight: 700; }
.mv-auth .mv-auth-fieldset .mv-auth-step { color: #aa7a5b; font-size: 10px; letter-spacing: .05em; margin-right: 8px; vertical-align: middle; }
.mv-auth .mv-auth-errors { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #eabdc8; border-radius: 10px; background: #fff4f6; color: #8b2340; font-size: 13px; overflow-wrap: anywhere; }
.mv-auth .mv-auth-errors p { margin: 0 0 5px; font-weight: 700; }
.mv-auth .mv-auth-errors ul { margin: 0; padding-left: 18px; }
.mv-auth .alert { border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; }
.mv-auth .mv-auth-required-note { font-size: 11px; color: var(--mva-muted); margin: 0 0 16px; }
.mv-auth .mv-auth-required-mark { color: #a92d49; }
@media (max-width: 900px) {
  .mv-auth { padding: 28px 16px 36px; }
  .mv-auth .mv-auth-shell, .mv-auth--register .mv-auth-shell { display: block; max-width: 660px; }
  .mv-auth .mv-auth-story { display: none; }
  .mv-auth .mv-auth-main { padding: 30px; }
}
@media (max-width: 520px) {
  .mv-auth { padding: 20px 12px 28px; }
  .mv-auth .mv-auth-shell { border-radius: 15px; }
  .mv-auth .mv-auth-main { padding: 24px 20px; }
  .mv-auth .mv-auth-title { font-size: 26px; }
  .mv-auth .mv-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mv-auth .mv-auth-heading { margin-bottom: 20px; }
  .mv-auth .mv-auth-input, .mv-auth .form-control, .mv-auth .form-select { font-size: 16px; }
  .mv-auth .mv-auth-google > div { padding: 12px !important; }
  .mv-auth .mv-auth-consents { margin: 18px 0; }
  .mv-auth .mv-auth-bottom { line-height: 1.9; }
  .mv-auth .mv-auth-label-row { flex-wrap: wrap; gap: 2px 10px; margin-bottom: 5px; }
}
@media (max-width: 359px) {
  .mv-auth { padding-inline: 6px; }
  .mv-auth .mv-auth-main { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mv-auth * { transition: none !important; } }

.mv-auth input[type="hidden"], .mv-auth [hidden] { display: none !important; }
