/* LMS password-reset request UI shared by installed mobile app and desktop/browser portal. */
body.clms-reset-open { overflow: hidden; }
.clms-reset-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); background: rgba(3, 18, 49, .62); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); overflow-y: auto; animation: clmsResetFade .2s ease both; }
.clms-reset-overlay[hidden] { display: none !important; }
.clms-reset-dialog { position: relative; width: min(100%, 430px); max-height: 100%; overflow-y: auto; padding: 25px 23px 20px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: linear-gradient(145deg,#fff 0%,#f9fbff 100%); box-shadow: 0 28px 80px rgba(0,17,56,.28), 0 3px 12px rgba(0,20,60,.06); color: #12264a; animation: clmsResetUp .28s cubic-bezier(.2,.8,.2,1) both; -webkit-overflow-scrolling: touch; }
.clms-reset-close { position: absolute; top: 14px; right: 15px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e5ebf4; border-radius: 12px; background: #fff; color: #52627b; font-size: 25px; line-height: 1; cursor: pointer; }
.clms-reset-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 17px; background: linear-gradient(145deg,#e9f1ff,#f3f7ff); box-shadow: inset 0 0 0 1px #dce8ff; }
.clms-reset-icon svg { width: 26px; height: 26px; fill: none; stroke: #073b91; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clms-reset-kicker { margin: 0 0 7px; color: #2459a6; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.clms-reset-dialog h2 { margin: 0; color: #10264d; font-size: clamp(23px,6vw,29px); line-height: 1.18; letter-spacing: -.8px; font-weight: 800; }
.clms-reset-dialog h2 span { color: #e31837; }
.clms-reset-description { margin: 8px 0 16px; color: #64738b; font-size: 12.5px; line-height: 1.6; }
.clms-reset-dialog form { display: flex; flex-direction: column; gap: 0; }
.clms-reset-dialog label { margin: 0 0 7px; color: #263b5c; font-size: 11.5px; font-weight: 700; }
.clms-reset-dialog label span { color: #8b98aa; font-weight: 500; }
.clms-reset-dialog input, .clms-reset-dialog select { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin: 0 0 11px; padding: 0 13px; border: 1px solid #dfe6f0; border-radius: 12px; outline: none; background: #fff; color: #182d4f; font: inherit; font-size: 13px; box-shadow: 0 2px 5px rgba(17,42,82,.025); }
.clms-reset-dialog input::placeholder { color: #a0aabc; }
.clms-reset-dialog input:focus, .clms-reset-dialog select:focus { border-color: #4d7ed0; box-shadow: 0 0 0 3px rgba(43,100,190,.1); }
.clms-reset-privacy { margin: 0 0 11px; color: #7a879a; font-size: 10.5px; line-height: 1.45; }
.clms-reset-privacy span { display: inline-block; margin-right: 4px; color: #2e6aaf; font-size: 15px; }
.clms-reset-message { display: none; margin: 0 0 12px; padding: 10px 11px; border-radius: 10px; font-size: 11.5px; line-height: 1.45; }
.clms-reset-message:not(:empty) { display: block; }
.clms-reset-message.is-error { color: #a32135; background: #fff0f2; border: 1px solid #ffd8de; }
.clms-reset-message.is-success { color: #176444; background: #eaf8f0; border: 1px solid #c8efd9; }
.clms-reset-submit { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 13px; background: linear-gradient(105deg,#063580,#0b4aa5); color: #fff; font-size: 12.5px; font-weight: 750; box-shadow: 0 8px 18px rgba(4,53,129,.2); cursor: pointer; }
.clms-reset-submit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clms-reset-submit:disabled { opacity: .7; cursor: wait; }
.clms-reset-cancel { display: block; width: 100%; min-height: 39px; margin-top: 6px; border: 0; background: transparent; color: #65758e; font-size: 12px; font-weight: 650; cursor: pointer; }
@keyframes clmsResetFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes clmsResetUp { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-height: 740px) { .clms-reset-dialog { padding: 20px 20px 15px; border-radius: 22px; } .clms-reset-icon { width: 43px; height: 43px; margin-bottom: 12px; } .clms-reset-description { margin-bottom: 13px; } .clms-reset-dialog input, .clms-reset-dialog select { min-height: 41px; margin-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { .clms-reset-overlay, .clms-reset-dialog { animation: none; } }

/* Shared responsive presentation for desktop portal and mobile app */
.clms-reset-overlay { box-sizing: border-box; }
.clms-reset-dialog { box-sizing: border-box; }
.clms-reset-dialog * { box-sizing: border-box; }
.clms-reset-close:focus-visible, .clms-reset-submit:focus-visible, .clms-reset-cancel:focus-visible { outline: 3px solid rgba(49, 111, 205, .38); outline-offset: 3px; }
@media (min-width: 768px) {
  .clms-reset-overlay { padding: 32px; }
  .clms-reset-dialog { width: min(100%, 480px); padding: 32px 30px 25px; border-radius: 28px; }
  .clms-reset-dialog h2 { font-size: 29px; }
  .clms-reset-description { font-size: 13px; }
  .clms-reset-dialog label { font-size: 12px; }
  .clms-reset-dialog input, .clms-reset-dialog select { min-height: 48px; font-size: 13px; }
  .clms-reset-submit { min-height: 51px; font-size: 13px; }
}
@media (max-width: 420px) {
  .clms-reset-overlay { padding-left: 12px; padding-right: 12px; }
  .clms-reset-dialog { padding-left: 19px; padding-right: 19px; }
}
/* Forgot Password: clean scrollbar fix */
.password-reset-modal,
.password-reset-card,
.password-reset-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.password-reset-modal::-webkit-scrollbar,
.password-reset-card::-webkit-scrollbar,
.password-reset-container::-webkit-scrollbar {
  display: none;
  width: 0;
}

html,
body {
  overflow-x: hidden;
}

/* Chrome + Edge: hide the form's visible scrollbar */
.clms-reset-dialog,
.clms-reset-overlay {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.clms-reset-dialog::-webkit-scrollbar,
.clms-reset-overlay::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Keep the form centered and within the browser window */
.clms-reset-overlay {
  align-items: center;
}

.clms-reset-dialog {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
