:root{
  --mv-glm-card: rgba(20, 20, 24, .72);
  --mv-glm-border: rgba(255,255,255,.12);
  --mv-glm-text: rgba(255,255,255,.92);
  --mv-glm-dim: rgba(255,255,255,.68);
  --mv-glm-accent: rgba(255,140,0,.95);
  --mv-glm-accentSoft: rgba(255,140,0,.18);
}

html.mv-glm-lock, html.mv-glm-lock body { overflow: hidden; }

/* Backdrop */
.mv-glm-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 999999;

  background:
    radial-gradient(1200px 600px at 50% 40%, rgba(255,140,0,.10), transparent 55%),
    rgba(0,0,0,.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mv-glm-backdrop.is-open{
  display: flex;
  animation: mvGlmFade .16s ease-out both;
}

/* Modal */
.mv-glm-modal{
  width: min(460px, 94vw);
  border-radius: 18px;
  padding: 22px 20px 18px;
  color: #ffffff !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    var(--mv-glm-card);
  border: 1px solid var(--mv-glm-border);
  box-shadow:
    0 24px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.06) inset;

  position: relative;
  transform-origin: center;
  animation: mvGlmPop .18s ease-out both;
  outline: none;
}

/* Accent top line */
.mv-glm-modal::before{
  content:"";
  position:absolute;
  left: 14px; right: 14px; top: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--mv-glm-accent), transparent);
  opacity: .8;
}

/* Steps */
.mv-glm-step { animation: mvGlmPop .18s ease-out both; }

/* Close button */
.mv-glm-close{
  position: absolute;
  top: 0px;
  right: 0px;

  width: 36px;
  height: 36px;
  border-radius: 0px 10px 0px 10px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.06);
  border: 0px solid rgba(255,255,255,.10);

  box-shadow:
    0 10px 26px rgba(0,0,0,.32),
    0 0 0 1px rgba(255,255,255,.06) inset;

  color: rgba(255,255,255,.82);
  cursor: pointer;

  transition:
    transform .14s ease,
    background .14s ease,
    border-color .14s ease,
    color .14s ease,
    box-shadow .14s ease;
}

.mv-glm-close-ico{ display:block; opacity:.95; }

.mv-glm-close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  box-shadow:
    0 14px 34px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 0 6px rgba(255,140,0,.08);
}
.mv-glm-close:active{ transform: translateY(0px) scale(.98); }
.mv-glm-close:focus-visible{
  outline: none;
  box-shadow:
    0 14px 34px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 0 4px rgba(255,140,0,.20);
}

/* Back button */
.mv-glm-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--mv-glm-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0 10px;
  transition: color .12s ease;
}
.mv-glm-back-btn:hover{ color: var(--mv-glm-text); }

/* Header */
.mv-glm-header{
  text-align:center;
  padding: 8px 8px 10px;
}
.mv-glm-logo{
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;

  display:grid;
  place-items:center;

  background: radial-gradient(circle at 30% 30%, rgba(255,140,0,.24), transparent 55%),
              rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: 22px;
}

.mv-glm-header h2{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
}

.mv-glm-header p{
  margin: 0;
  font-size: 13px;
  color: var(--mv-glm-dim);
}

/* Badges */
.mv-glm-badges{
  margin: 10px 0 14px;
  display:flex;
  gap: 8px;
  justify-content:center;
  flex-wrap: wrap;
}
.mv-glm-badge{
  font-size: 12px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Google button */
.mv-glm-google-btn{
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  padding: 12px 14px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  background: #fff !important;
  color: #111 !important;
  text-decoration:none !important;
  font-weight: 900;
  letter-spacing: .1px;

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .12s ease, box-shadow .12s ease;
}
.mv-glm-google-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.26);
  color: #111 !important;
}
.mv-glm-google-btn:active{ transform: translateY(0) scale(.99); }
.mv-glm-google-btn:focus-visible{
  outline: 3px solid var(--mv-glm-accentSoft);
  outline-offset: 3px;
}

.mv-glm-google-icon{
  width: 24px;
  height: 24px;
  display:grid;
  place-items:center;
  border-radius: 8px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
}
.mv-glm-google-text{ font-size: 14px; }

/* OR divider */
.mv-glm-or-divider{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.mv-glm-or-divider span{
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.12);
}
.mv-glm-or-divider em{
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* Email login button */
.mv-glm-email-btn{
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  padding: 12px 14px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1px;

  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.mv-glm-email-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.mv-glm-email-btn:active{ transform: translateY(0) scale(.99); }
.mv-glm-email-icon{
  display: grid;
  place-items: center;
  color: var(--mv-glm-accent);
}

/* OTP form */
.mv-glm-otp-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.mv-glm-field-label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.70);
  letter-spacing: .3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: -4px;
}

/* Generic text/email input */
.mv-glm-input{
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.08) !important;
  color: #ffffff !important;
  font-size: 15px;
  outline: none !important;
  box-sizing: border-box;
  transition: border-color .14s ease, box-shadow .14s ease;
  -webkit-text-fill-color: #ffffff !important;
}
.mv-glm-input::placeholder{ color: rgba(255,255,255,.45) !important; opacity: 1 !important; }
.mv-glm-input:focus{
  border-color: var(--mv-glm-accent) !important;
  box-shadow: 0 0 0 3px rgba(255,140,0,.14) !important;
  background: rgba(255,255,255,.10) !important;
}

/* OTP digit boxes */
.mv-glm-otp-boxes{
  display: flex;
  gap: 8px;
  justify-content: center;
}
.mv-glm-otp-box{
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #ffffff !important;
  outline: none;
  caret-color: var(--mv-glm-accent);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.mv-glm-otp-box:focus{
  border-color: var(--mv-glm-accent);
  box-shadow: 0 0 0 3px rgba(255,140,0,.16);
  background: rgba(255,255,255,.10);
}
.mv-glm-otp-box.is-filled{
  border-color: rgba(255,140,0,.55);
  background: rgba(255,140,0,.08);
}

/* OTP timer */
.mv-glm-otp-timer{
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.50);
}
.mv-glm-otp-timer.expiring{ color: rgba(255,80,80,.85); font-weight: 700; }

/* Send / Verify button */
.mv-glm-otp-send-btn{
  width: 100%;
  min-height: 50px;
  border-radius: 13px;
  padding: 12px 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: linear-gradient(135deg, rgba(255,140,0,.90), rgba(255,100,0,.88));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
  border: 1px solid rgba(255,140,0,.40);
  box-shadow: 0 8px 24px rgba(255,100,0,.28);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.mv-glm-otp-send-btn:hover:not(:disabled){
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255,100,0,.34);
}
.mv-glm-otp-send-btn:active:not(:disabled){ transform: scale(.99); }
.mv-glm-otp-send-btn:disabled{
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.mv-glm-otp-send-btn:focus-visible{
  outline: 3px solid var(--mv-glm-accentSoft);
  outline-offset: 3px;
}

/* Spinner */
.mv-glm-spinner{
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.30);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mvGlmSpin .7s linear infinite;
  flex-shrink: 0;
}

/* Message */
.mv-glm-msg{
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  transition: color .15s ease;
}
.mv-glm-msg.is-error{ color: rgba(255,100,100,.90); }
.mv-glm-msg.is-success{ color: rgba(80,220,120,.90); }

/* Resend row */
.mv-glm-resend-row{
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.mv-glm-resend-btn{
  background: none;
  border: none;
  color: rgba(120,190,255,.90);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  transition: color .12s ease, opacity .12s ease;
}
.mv-glm-resend-btn:disabled{
  color: rgba(255,255,255,.30);
  cursor: not-allowed;
}
.mv-glm-resend-btn:hover:not(:disabled){ color: rgba(120,190,255,1); }

/* Footer */
.mv-glm-footer{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}
.mv-glm-later{
  background: transparent;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.80);
  border-radius: 999px;
  padding: 9px 16px;
  cursor:pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.mv-glm-later:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}
.mv-glm-later:active{ transform: scale(.99); }
.mv-glm-later:focus-visible{
  outline: 3px solid var(--mv-glm-accentSoft);
  outline-offset: 3px;
}

/* Legal */
.mv-glm-legal{ margin-top: 14px; padding-top: 12px; }

.mv-glm-legal-divider{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0 0 10px;
  opacity: .78;
}
.mv-glm-legal-divider span{
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.12);
}
.mv-glm-legal-divider em{
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  letter-spacing: .2px;
}

.mv-glm-legal p{
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.60);
  text-align: center;
}
.mv-glm-legal a{
  color: #ff9c1a !important;
  text-decoration: none !important;
  font-weight: 700;
}
.mv-glm-legal a:hover{ text-decoration: underline !important; color: #ffb347 !important; }
.mv-glm-legal-muted{ color: rgba(255,255,255,.45); }

/* Animations */
@keyframes mvGlmFade{
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mvGlmPop{
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mvGlmSpin{
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 420px){
  .mv-glm-modal{ padding: 18px 16px 16px; border-radius: 16px; }
  .mv-glm-header h2{ font-size: 18px; }
  .mv-glm-google-btn, .mv-glm-email-btn{ min-height: 50px; border-radius: 12px; }
  .mv-glm-otp-box{ width: 40px; height: 50px; font-size: 20px; border-radius: 10px; }
}