:root{
  --msma-red:#f5222d;
  --msma-red-dark:#dd1722;
  --msma-ink:#111214;
  --msma-muted:#74777e;
  --msma-line:#e2e3e7;
  --msma-soft:#f5f5f7;
}
*{box-sizing:border-box}
html{background:#f3f3f5}
body.msma-portal-guest{
  margin:0!important;
  min-height:100vh;
  background:#f3f3f5!important;
  color:var(--msma-ink);
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  -webkit-font-smoothing:antialiased;
}
body.msma-portal-guest #wpadminbar{display:none!important}
body.msma-portal-guest .msma-portal-root{min-height:100vh;display:grid;place-items:center;padding:34px}
body.msma-portal-guest .msma-site-header,
body.msma-portal-guest .msma-site-footer{display:none!important}

.msma-auth-shell{
  width:min(1160px,100%);
  min-height:680px;
  display:grid;
  grid-template-columns:1.03fr .97fr;
  background:#fff;
  border:1px solid #dedfe3;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 26px 70px rgba(17,18,20,.10);
}
.msma-auth-story{
  position:relative;
  min-height:680px;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  padding:48px;
  background-image:var(--msma-auth-cover);
  background-size:cover;
  background-position:center;
}
.msma-auth-story-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 20%,rgba(0,0,0,.72) 100%);
}
.msma-auth-story-copy{position:relative;z-index:1;max-width:480px;color:#fff}
.msma-auth-story-copy>span{
  display:block;
  margin-bottom:12px;
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.13em;
}
.msma-auth-story-copy h1{
  margin:0!important;
  color:#fff!important;
  font-size:48px!important;
  line-height:1.02!important;
  font-weight:800!important;
  letter-spacing:-.045em!important;
}
.msma-auth-story-copy p{
  max-width:430px;
  margin:18px 0 0!important;
  color:rgba(255,255,255,.82)!important;
  font-size:14px!important;
  line-height:1.65!important;
}

.msma-auth-card{display:flex;align-items:center;justify-content:center;padding:50px 58px;background:#fff}
.msma-auth-inner{width:min(100%,430px)}
.msma-auth-logo{display:inline-flex;align-items:center;justify-content:flex-start;margin-bottom:28px;text-decoration:none!important}
.msma-auth-logo img{display:block;width:auto;max-width:112px;max-height:62px;object-fit:contain}
.msma-auth-logo strong{font-size:18px;color:#111}

.msma-auth-tabs{
  display:flex;
  gap:26px;
  margin-bottom:30px;
  border-bottom:1px solid var(--msma-line);
}
.msma-auth-tabs button{
  position:relative;
  appearance:none;
  border:0;
  background:transparent;
  padding:0 0 12px;
  color:#8a8c92;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.msma-auth-tabs button[aria-selected="true"]{color:#111}
.msma-auth-tabs button[aria-selected="true"]::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--msma-red);
}

.msma-auth-heading{margin-bottom:24px}
.msma-auth-heading h2{
  margin:0!important;
  color:#111!important;
  font-size:36px!important;
  line-height:1.04!important;
  font-weight:800!important;
  letter-spacing:-.04em!important;
}
.msma-auth-heading p{
  margin:9px 0 0!important;
  color:var(--msma-muted)!important;
  font-size:13px!important;
  line-height:1.55!important;
}

.msma-auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#9a9ca1;font-size:10px;font-weight:600;white-space:nowrap}
.msma-auth-divider::before,.msma-auth-divider::after{content:"";height:1px;flex:1;background:var(--msma-line)}

.msma-auth-panel[hidden]{display:none!important}
.msma-auth-form{display:grid;gap:16px}
.msma-auth-form label>span{
  display:block;
  margin:0 0 7px;
  color:#4f5157;
  font-size:11px;
  line-height:1.2;
  font-weight:700;
}
.msma-auth-form input[type=text],
.msma-auth-form input[type=email],
.msma-auth-form input[type=password]{
  width:100%;
  height:54px!important;
  margin:0!important;
  padding:0 16px!important;
  border:1px solid #d7d9dd!important;
  border-radius:12px!important;
  outline:0!important;
  background:#fff!important;
  color:#151618!important;
  font:inherit!important;
  font-size:13px!important;
  box-shadow:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.msma-auth-form input:focus{
  border-color:var(--msma-red)!important;
  box-shadow:0 0 0 4px rgba(245,34,45,.08)!important;
}
.msma-auth-options{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:-2px}
.msma-check{display:flex!important;align-items:center;gap:8px;margin:0!important;cursor:pointer}
.msma-check input{width:16px;height:16px;margin:0!important;accent-color:var(--msma-red)}
.msma-check>span{margin:0!important;color:#666970!important;font-size:11px!important;font-weight:500!important}
.msma-forgot{color:#51545a!important;font-size:11px!important;font-weight:700!important;text-decoration:none!important}
.msma-forgot:hover{color:var(--msma-red)!important}
.msma-auth-submit{
  width:100%;
  min-height:54px;
  margin-top:2px;
  border:0;
  border-radius:12px;
  background:var(--msma-red);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:none;
  transition:transform .16s ease,background .16s ease,opacity .16s ease;
}
.msma-auth-submit:hover{background:var(--msma-red-dark)}
.msma-auth-submit:active{transform:translateY(1px)}
.msma-auth-submit[disabled]{opacity:.65;cursor:wait}
.msma-auth-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.msma-auth-hint{margin:-8px 0 0!important;color:#919399!important;font-size:10px!important}
.msma-auth-security{margin:22px 0 0!important;color:#999ba0!important;font-size:9px!important;line-height:1.5!important;text-align:center}

body.msma-portal-guest .woocommerce-notices-wrapper{margin:0 0 18px}
body.msma-portal-guest .woocommerce-error,
body.msma-portal-guest .woocommerce-message,
body.msma-portal-guest .woocommerce-info{
  list-style:none!important;
  margin:0 0 18px!important;
  padding:12px 14px!important;
  border:1px solid #eed0d2!important;
  border-left:3px solid var(--msma-red)!important;
  border-radius:10px!important;
  background:#fff7f7!important;
  color:#4a2528!important;
  font-size:11px!important;
  line-height:1.5!important;
  box-shadow:none!important;
}
body.msma-portal-guest .woocommerce-message{border-color:#dce8dc!important;border-left-color:#2e8b57!important;background:#f6fbf6!important;color:#24472f!important}
body.msma-portal-guest .woocommerce-error::before,
body.msma-portal-guest .woocommerce-message::before,
body.msma-portal-guest .woocommerce-info::before{display:none!important}

@media(max-width:900px){
  body.msma-portal-guest .msma-portal-root{padding:22px}
  .msma-auth-shell{min-height:640px;grid-template-columns:.94fr 1.06fr}
  .msma-auth-story{min-height:640px;padding:34px}
  .msma-auth-story-copy h1{font-size:39px!important}
  .msma-auth-card{padding:42px 38px}
}

@media(max-width:700px){
  html,body.msma-portal-guest{background:#fff!important}
  body.msma-portal-guest .msma-portal-root{display:block;min-height:100svh;padding:0;background:#fff}
  .msma-auth-shell{width:100%;min-height:100svh;display:block;border:0;border-radius:0;box-shadow:none;background:#fff}
  .msma-auth-story{display:none!important}
  .msma-auth-card{min-height:100svh;display:block;padding:calc(26px + env(safe-area-inset-top)) 22px calc(34px + env(safe-area-inset-bottom));background:#fff}
  .msma-auth-inner{width:100%;max-width:430px;margin:0 auto}
  .msma-auth-logo{display:flex;justify-content:center;margin:2px 0 28px}
  .msma-auth-logo img{max-width:106px;max-height:66px}
  .msma-auth-tabs{margin-bottom:30px;justify-content:center;gap:34px}
  .msma-auth-tabs button{font-size:13px;padding-bottom:13px}
  .msma-auth-heading{margin-bottom:22px;text-align:left}
  .msma-auth-heading h2{font-size:32px!important}
  .msma-auth-heading p{font-size:12px!important}
  .msma-auth-form{gap:15px}
  .msma-auth-form label>span{font-size:11px}
  .msma-auth-form input[type=text],.msma-auth-form input[type=email],.msma-auth-form input[type=password]{height:55px!important;font-size:16px!important}
  .msma-auth-submit{min-height:55px;font-size:14px}
  .msma-auth-options{gap:12px}
  .msma-check>span,.msma-forgot{font-size:10px!important}
  .msma-auth-security{margin-top:24px!important;font-size:9px!important}
}

@media(max-width:390px){
  .msma-auth-card{padding-left:18px;padding-right:18px}
  .msma-auth-name-grid{grid-template-columns:1fr}
  .msma-auth-options{align-items:flex-start;flex-direction:column;gap:8px}
}

/* ========================================================================
   v2.13.1 — Auth polish: compact mobile, clean guest canvas, no float UI
   ======================================================================== */

/* The auth screen is a self-contained entry point. Floating site launchers
   visually clash with the form and can cover controls on iPhone. Consent
   logic remains loaded; only the launchers are hidden inside this route. */
body.msma-portal-guest .iubenda-tp-btn,
body.msma-portal-guest .iubenda-uspr-btn,
body.msma-portal-guest #iubenda-cs-preferences-link,
body.msma-portal-guest .iubenda-cs-preferences-link,
body.msma-portal-guest [class*="iubenda-tp" i],
body.msma-portal-guest [class*="iubenda-uspr" i],
body.msma-portal-guest [id*="iubenda-cs-preferences" i],
body.msma-portal-guest .joinchat,
body.msma-portal-guest #joinchat,
body.msma-portal-guest .wa__btn_popup,
body.msma-portal-guest .whatsapp-floating,
body.msma-portal-guest #qlwapp,
body.msma-portal-guest .ht-ctc-chat,
body.msma-portal-guest [class*="whatsapp-widget" i],
body.msma-portal-guest [data-testid*="whatsapp" i]{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.msma-portal-guest{overflow-x:hidden!important}

/* Desktop: make the visual half feel intentional rather than like a white
   photo with text laid over it. This only changes the crop, not the asset. */
@media(min-width:701px){
  .msma-auth-shell{min-height:660px}
  .msma-auth-story{
    min-height:660px;
    background-size:145% auto;
    background-position:center bottom;
    background-repeat:no-repeat;
    background-color:#ececee;
  }
  .msma-auth-card{padding-top:44px;padding-bottom:44px}
}

/* Mobile is intentionally tighter. 16px inputs are kept to stop Safari from
   zooming on focus, while the vertical rhythm is reduced substantially. */
@media(max-width:700px){
  body.msma-portal-guest .msma-portal-root{min-height:100svh}
  .msma-auth-shell{min-height:100svh}
  .msma-auth-card{
    min-height:100svh;
    padding:calc(14px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  }
  .msma-auth-inner{max-width:420px}
  .msma-auth-logo{margin:0 0 16px}
  .msma-auth-logo img{max-width:86px;max-height:54px}
  .msma-auth-tabs{
    gap:30px;
    margin-bottom:20px;
  }
  .msma-auth-tabs button{
    padding-bottom:10px;
    font-size:12px;
    letter-spacing:.01em;
  }
  .msma-auth-heading{margin-bottom:17px}
  .msma-auth-heading h2{
    font-size:28px!important;
    line-height:1.04!important;
  }
  .msma-auth-heading p{
    margin-top:7px!important;
    font-size:11.5px!important;
    line-height:1.45!important;
  }
  .msma-auth-form{gap:12px}
  .msma-auth-form label>span{
    margin-bottom:6px;
    font-size:10.5px;
  }
  .msma-auth-form input[type=text],
  .msma-auth-form input[type=email],
  .msma-auth-form input[type=password]{
    height:48px!important;
    padding:0 14px!important;
    border-radius:11px!important;
    font-size:16px!important;
  }
  .msma-auth-options{
    align-items:center;
    flex-direction:row;
    gap:10px;
    margin-top:0;
  }
  .msma-check{gap:7px}
  .msma-check input{width:15px;height:15px}
  .msma-check>span,.msma-forgot{
    font-size:10px!important;
    line-height:1.25!important;
  }
  .msma-forgot{margin-left:auto;text-align:right}
  .msma-auth-submit{
    min-height:50px;
    margin-top:1px;
    border-radius:12px;
    font-size:13px;
  }
  .msma-auth-security{display:none!important}
  .msma-auth-divider{margin:14px 0;font-size:9px}
  .msma-auth-hint{margin:-5px 0 0!important;font-size:9.5px!important}

  /* Two short name fields save a full row of vertical scrolling. */
  .msma-auth-name-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
  }
}

@media(max-width:370px){
  .msma-auth-card{padding-left:17px;padding-right:17px}
  .msma-auth-logo{margin-bottom:13px}
  .msma-auth-logo img{max-width:80px;max-height:50px}
  .msma-auth-tabs{margin-bottom:17px;gap:24px}
  .msma-auth-heading{margin-bottom:15px}
  .msma-auth-heading h2{font-size:26px!important}
  .msma-auth-form{gap:11px}
  .msma-auth-form input[type=text],
  .msma-auth-form input[type=email],
  .msma-auth-form input[type=password]{height:47px!important}
  .msma-auth-submit{min-height:48px}
  .msma-check>span,.msma-forgot{font-size:9.5px!important}
}
