/* Dedicated private AAMC application inside the existing SANMA WordPress page. */
.aamc-access-panel{font-family:Arial,sans-serif;box-sizing:border-box;max-width:430px;margin:70px auto 90px;background:#fff;padding:43px 42px 39px;border:1px solid #e5ecf0;border-radius:9px;box-shadow:0 24px 60px rgba(12,34,50,.065);color:#1b394e}
.aamc-access-panel *{box-sizing:border-box}
.aamc-access-mark{width:45px;height:45px;display:grid;place-items:center;border:1px solid #829dac;color:#1c4962;font:29px Georgia,serif}
.aamc-access-kicker{font-size:10px!important;letter-spacing:2px;color:#7a94a3;margin:21px 0 13px!important}
.aamc-access-panel h1{font:normal 33px Georgia,serif!important;color:#1b394e!important;margin:0 0 12px!important}
.aamc-access-detail{color:#728692;font-size:13px!important;line-height:1.7;margin:0 0 25px!important}
.aamc-access-panel label{font-size:12px;font-weight:650;color:#355267;display:block;margin:0 0 6px}
.aamc-access-panel .login-username,.aamc-access-panel .login-password{margin-bottom:16px!important}
.aamc-access-panel input[type=text],.aamc-access-panel input[type=password]{width:100%;padding:11px;border:1px solid #dbe5ea;border-radius:5px;background:#fff;color:#233c4f}
.aamc-access-panel input[type=submit]{background:#173b53;color:#fff;border:0;border-radius:5px;padding:12px 20px;font-size:13px;font-weight:700;cursor:pointer;width:100%}
.aamc-access-panel input[type=submit]:hover{background:#245879}
.aamc-access-panel .login-remember{display:none}
.aamc-access-help{text-align:center;font-size:11px!important;margin:22px 0 0!important}
.aamc-access-help a,.aamc-access-panel a{color:#406d86;text-decoration:none}
.aamc-frontend-wrap{width:100vw!important;max-width:none!important;position:relative;left:50%;margin-left:-50vw!important;margin-right:0!important;margin-top:24px!important;margin-bottom:0!important}
.aamc-frontend-wrap .aamc-shell{min-height:75vh}
.aamc-frontend-wrap .aamc-side{top:0;height:100vh;min-height:100vh}
@media(max-width:650px){.aamc-access-panel{margin:35px 12px;padding:28px 23px}.aamc-frontend-wrap{margin-left:-50vw!important}}


/* V1.3: SANMA's original navigation stays visible. Only AAMC's private page
   is full-bleed; real theme header remains in its own layout/stacking context. */
body.aamc-access-page{margin:0!important;max-width:none!important;overflow-x:hidden;background:#f5f7f9}
body.aamc-access-page #aamc-main-content.aamc-site-internal{
  --aamc-menu-clearance:0px;
  --aamc-sticky-top:0px;
  display:block!important;position:relative;z-index:1;
  width:100vw!important;max-width:100vw!important;min-width:0;
  left:50%;transform:translateX(-50%);
  margin:0!important;padding:var(--aamc-menu-clearance) 0 0!important;
  background:#f5f7f9;box-sizing:border-box;clear:both;
}
body.aamc-access-page .aamc-site-internal .aamc-admin-wrap.aamc-frontend-wrap{
  display:block!important;width:100%!important;max-width:none!important;
  min-width:0!important;position:static!important;left:auto!important;
  right:auto!important;transform:none!important;margin:0!important;padding:0!important;
  float:none!important;
}
body.aamc-access-page .aamc-site-internal #aamc-admin-app{width:100%!important;max-width:none!important}
body.aamc-access-page .aamc-site-internal .aamc-shell{
  width:100%;max-width:none;min-height:calc(100vh - var(--aamc-sticky-top));
}
body.aamc-access-page .aamc-site-internal .aamc-side{
  position:sticky;top:var(--aamc-sticky-top);height:calc(100vh - var(--aamc-sticky-top));
  min-height:320px;max-height:100vh;
}
/* The user's AAMC logo is displayed unaltered on a pale inset for contrast. */
.aamc-brand-image{background:#f7f9fa;border:1px solid #d8e4eb;border-radius:7px;
  padding:10px 8px;display:flex;align-items:center;justify-content:center;
  width:100%;height:104px;box-sizing:border-box}
.aamc-brand-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
body.aamc-access-page .aamc-site-internal .aamc-brand,
.aamc-admin-wrap .aamc-brand{padding:18px 15px 22px;display:flex;align-items:center}
/* The main theme footer is unnecessary inside the internal application. */
body.aamc-access-page .elementor-location-footer,
body.aamc-access-page footer#colophon,
body.aamc-access-page footer.site-footer,
body.aamc-access-page .site-footer,
body.aamc-access-page #footer,
body.aamc-access-page #ast-scroll-top{display:none!important}
/* Header remains above app if theme uses fixed or sticky navigation. */
body.aamc-access-page .elementor-location-header,
body.aamc-access-page #masthead,
body.aamc-access-page .site-header{z-index:100!important}
body.aamc-access-page .aamc-site-internal:has(.aamc-access-panel){
  min-height:calc(100vh - var(--aamc-sticky-top));
  display:flex!important;align-items:center;justify-content:center;padding:32px 15px!important;
  background:radial-gradient(circle at 50% 0%,#e9eff2 0%,#f6f8fa 55%)
}
body.aamc-access-page .aamc-access-panel{width:min(100%,440px);margin:0!important}
.aamc-access-logo{width:190px;height:100px;object-fit:contain;object-position:center;display:block;margin:0 auto 10px}
.aamc-access-panel{margin-top:45px;margin-bottom:45px}
@media(max-width:1000px){
  .aamc-brand-image{height:48px;width:43px;min-width:43px;padding:3px;border-radius:4px}
  .aamc-admin-wrap .aamc-brand{padding:15px 8px}
}
@media(max-width:650px){
  body.aamc-access-page .aamc-site-internal .aamc-admin-wrap.aamc-frontend-wrap{margin:0!important}
  body.aamc-access-page .aamc-site-internal .aamc-side{min-height:0;height:auto;max-height:none;position:sticky;top:var(--aamc-sticky-top)}
  body.aamc-access-page .aamc-site-internal:has(.aamc-access-panel){padding:20px 12px!important}
}
