/* MDHP School Planet | Consolidated Login Layout | 2026-10-15
   Replaces, not appends to, old MDHP login CSS. */
:root{--mdhp-ink:#102c59;--mdhp-blue:#1959ad;--mdhp-orange:#ffad65}
html,body{margin:0!important;min-height:100%;height:auto!important;overflow-x:hidden!important;background:#fff!important;font-family:'Segoe UI',Arial,sans-serif!important}
.top-content,.top-content>.inner-bg,.top-content>.inner-bg>.container-fluid,.top-content>.inner-bg>.container-fluid>.row{margin:0!important;padding:0!important;height:auto!important;min-height:0!important;max-height:none!important;transform:none!important;zoom:1!important}
.top-content>.inner-bg>.container-fluid>.row{display:block!important}
.top-content .bgoffsetbg{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;margin:0!important;padding:0!important;width:100%!important;min-height:100vh!important;min-height:100dvh!important;height:auto!important;max-height:none!important;transform:none!important;zoom:1!important;background:#fff}
.top-content .bgoffsetbg>.col-lg-4,.top-content .bgoffsetbg>.col-lg-8{float:none!important;position:relative;box-sizing:border-box!important;min-width:0!important;max-height:none!important;transform:none!important;zoom:1!important}
.top-content .bgoffsetbg>.col-lg-4{flex:0 0 43%!important;width:43%!important;max-width:43%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:100vh!important;min-height:100dvh!important;height:auto!important;padding:20px clamp(24px,3.3vw,60px)!important;background:#fff!important;z-index:1}
.top-content .bgoffsetbg>.col-lg-8{flex:1 1 57%!important;width:57%!important;max-width:57%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:100vh!important;min-height:100dvh!important;height:auto!important;padding:28px clamp(24px,4vw,70px)!important;overflow:hidden!important;background:radial-gradient(circle at 95% 18%,rgba(61,124,206,.43),transparent 46%),linear-gradient(128deg,#081e43,#123d7c 70%,#174d92)!important}
.top-content .bgoffsetbg>.col-lg-8:before{content:'';position:absolute;right:-170px;top:-210px;width:520px;height:520px;border:1px solid rgba(255,255,255,.12);border-radius:50%;pointer-events:none;box-shadow:0 0 0 85px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.015)}
.top-content .loginbg{display:block!important;position:relative!important;flex:none!important;box-sizing:border-box!important;width:100%!important;max-width:440px!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;text-align:left!important;transform:none!important;zoom:1!important}
.top-content .loginbg .form-top,.top-content .loginbg .form-bottom,.top-content .loginbg .form-top-left{display:block!important;float:none!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;transform:none!important;zoom:1!important}
.top-content .loginbg .form-top{margin-bottom:19px!important}
.top-content .loginbg .form-top img{display:block!important;max-width:225px!important;max-height:55px!important;width:auto!important;height:auto!important;object-fit:contain;object-position:left}
.top-content .loginbg .form-bottom h3{margin:0 0 32px!important;font-size:30px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:-.7px;color:#102c59!important}
.top-content .loginbg .form-bottom h3:after{content:'Secure access to your school management workspace';display:block;margin-top:8px;font-size:13px;line-height:1.5;font-weight:400;letter-spacing:0;color:#6b7e9c}
.top-content .loginbg .login-form,.top-content .loginbg .gauthenticate-form{box-sizing:border-box!important;width:100%!important;max-width:440px!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;transform:none!important;zoom:1!important}
.top-content .loginbg .form-group{position:relative;min-height:0!important;height:auto!important;margin:0 0 12px!important;padding:0!important;overflow:visible!important}
.top-content .loginbg input.form-control{box-sizing:border-box!important;display:block!important;width:100%!important;height:46px!important;min-height:46px!important;padding:10px 15px!important;font-size:15px!important;line-height:24px!important;color:#183459!important;background:#f8faff!important;border:1px solid #d8e3f2!important;border-radius:11px!important;box-shadow:none!important}
.top-content .loginbg input.form-control:focus{background:#fff!important;border-color:#2a70c7!important;box-shadow:0 0 0 3px rgba(30,99,190,.12)!important}
.top-content .loginbg .form-group.row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;width:auto!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0 -6px 12px!important;padding:0!important;transform:none!important;zoom:1!important}
.top-content .loginbg .form-group.row>[class*=col-]{box-sizing:border-box!important;float:none!important;min-width:0!important;width:50%!important;max-width:50%!important;flex:0 0 50%!important;margin:0!important;padding:0 6px!important;min-height:0!important;height:auto!important}
.top-content .loginbg #captcha_image img{display:inline-block!important;vertical-align:middle!important;max-width:calc(100% - 34px)!important;max-height:47px!important;width:auto!important;height:auto!important;border-radius:7px}
.top-content .loginbg .catpcha{display:inline-block;color:#185bb1!important;font-size:17px!important;cursor:pointer;padding:7px!important;vertical-align:middle}
.top-content .loginbg .login-form button[type=submit],.top-content .loginbg .gauthenticate-form button[type=submit]{box-sizing:border-box!important;display:block!important;position:relative!important;width:100%!important;height:47px!important;min-height:47px!important;margin:5px 0 0!important;padding:10px!important;border:0!important;border-radius:11px!important;color:#fff!important;font-size:16px!important;font-weight:700!important;line-height:25px!important;background:linear-gradient(105deg,#174a96,#2877d1)!important;box-shadow:0 9px 20px rgba(23,77,150,.16)!important;transform:none!important;zoom:1!important}
.top-content .loginbg .mdhp-login-foot{margin:15px 0 0!important;font-size:11px!important;line-height:1.55!important;color:#8291aa!important}
.top-content .loginbg .form-bottom>p{margin:12px 0 0!important;font-size:13px!important}
.top-content .loginbg .forgot{font-weight:600!important;color:#1c5ca8!important}
.top-content .loginbg .mdhp-pass-toggle{position:absolute;right:12px;top:7px;border:0;background:transparent;color:#3b6ca9;padding:7px;z-index:2}
.top-content .loginbg .form-password{padding-right:62px!important}
.top-content .loginbg .alert{padding:9px 12px!important;margin-bottom:12px!important}
.top-content .mdhp-login-hero{position:relative!important;z-index:1!important;display:block!important;flex:none!important;width:100%!important;max-width:650px!important;margin:0 auto!important;color:#fff!important;text-align:left!important;transform:none!important;zoom:1!important}
.top-content .mdhp-eyebrow{font-size:11px!important;letter-spacing:2px!important;font-weight:700!important;color:#c2d8f9!important}
.top-content .mdhp-login-hero h1{margin:16px 0!important;font-size:clamp(35px,3.3vw,55px)!important;line-height:1.12!important;font-weight:750!important;letter-spacing:-1.8px!important;color:#fff!important}
.top-content .mdhp-login-hero h1 em{font-style:normal;color:var(--mdhp-orange)!important}
.top-content .mdhp-login-hero>p{max-width:560px!important;margin:0!important;font-size:16px!important;line-height:1.65!important;color:#d8e6fa!important}
.top-content .mdhp-hero-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:24px 0!important}
.top-content .mdhp-hero-tile{min-width:0;padding:15px 13px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.17)!important;background:rgba(255,255,255,.075)!important}
.top-content .mdhp-hero-tile i{display:block;margin:0 0 11px!important;font-size:22px!important;color:var(--mdhp-orange)!important}
.top-content .mdhp-hero-tile strong{display:block;font-size:13px!important;color:#fff!important}
.top-content .mdhp-hero-tile small{display:block;margin-top:5px;font-size:11px!important;line-height:1.5;color:#d3e0f4!important}
.top-content .mdhp-brand-foot{margin:20px 0 0!important;font-size:12px!important;color:#c6d9f5!important}
.top-content .mdhp-brand-foot strong{color:#fff!important}
/* Preserve announcements when present; do not allocate empty viewport space. */
.top-content .bgoffsetbg>.col-lg-8>.d-flex{position:relative!important;z-index:1!important;flex:none!important;min-height:0!important;height:auto!important;max-height:170px!important;overflow:auto!important;width:100%!important;background-image:none!important;margin:0!important;padding:0!important}
.top-content .bgoffsetbg>.col-lg-8>.d-flex:has(>div:empty){display:none!important}
.top-content .bgoffsetbg>.col-lg-8>.d-flex .bg-shadow-remove{color:#fff!important}
/* Never assign viewport height to nested Bootstrap rows. */
.top-content .loginbg .row,.top-content .loginbg .form-group.row{min-height:0!important;height:auto!important}
@media(max-height:740px) and (min-width:992px){.top-content .bgoffsetbg>.col-lg-4{justify-content:flex-start!important;padding-top:18px!important;padding-bottom:18px!important}.top-content .bgoffsetbg>.col-lg-8{justify-content:center!important;padding-top:18px!important;padding-bottom:18px!important}.top-content .loginbg .form-top{margin-bottom:12px!important}.top-content .loginbg .form-bottom h3{margin-bottom:24px!important}.top-content .mdhp-hero-grid{margin:17px 0!important}}
@media(max-width:991px){.top-content .bgoffsetbg{flex-wrap:wrap!important;min-height:0!important}.top-content .bgoffsetbg>.col-lg-4,.top-content .bgoffsetbg>.col-lg-8{flex:0 0 100%!important;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important}.top-content .bgoffsetbg>.col-lg-4{padding:30px 22px!important}.top-content .bgoffsetbg>.col-lg-8{padding:35px 22px!important}.top-content .mdhp-login-hero h1{font-size:38px!important}.top-content .mdhp-hero-grid{margin:22px 0!important}}
@media(max-width:520px){.top-content .bgoffsetbg>.col-lg-4{padding:26px 18px!important}.top-content .bgoffsetbg>.col-lg-8{padding:32px 18px!important}.top-content .loginbg .form-bottom h3{font-size:27px!important}.top-content .loginbg .form-group.row{flex-wrap:wrap!important;gap:10px!important}.top-content .loginbg .form-group.row>[class*=col-]{flex:0 0 100%!important;width:100%!important;max-width:100%!important}.top-content .mdhp-hero-grid{grid-template-columns:1fr!important}.top-content .mdhp-hero-tile{padding:12px!important}.top-content .mdhp-hero-tile i{display:inline-block;margin:0 9px 0 0!important}.top-content .mdhp-hero-tile strong{display:inline}.top-content .mdhp-hero-tile small{margin:4px 0 0 29px!important}.top-content .mdhp-login-hero h1{font-size:34px!important}}


/* MDHP LEFT LOGIN ALIGNMENT V1 */

@media (min-width: 992px) {

  .top-content .bgoffsetbg > .col-lg-4 {
    padding: 24px 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .top-content .loginbg {
    width: 100% !important;
    max-width: 460px !important;
    margin: 0 auto !important;
  }

  .top-content .loginbg .form-top {
    margin-bottom: 14px !important;
  }

  .top-content .loginbg .form-top img {
    max-width: 205px !important;
    max-height: 46px !important;
  }

  .top-content .loginbg .form-bottom h3 {
    margin-bottom: 24px !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
  }

  .top-content .loginbg .form-group {
    margin-bottom: 13px !important;
  }

  .top-content .loginbg .mdhp-login-foot {
    margin-top: 16px !important;
  }

  .top-content .loginbg .form-bottom > p {
    margin-top: 14px !important;
  }
}

@media (min-width: 992px) and (max-height: 780px) {
  .top-content .bgoffsetbg > .col-lg-4 {
    justify-content: center !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

