#pi_mca .alert {
  padding: 20px;
  background-color: #f44336; /* Red */
  color: white;
  margin-bottom: 15px;
}

.mc-auth-login{max-width:420px;padding:20px;border:1px solid #dcdcde;border-radius:8px;background:#fff}.mc-auth-login label{display:block}.mc-auth-login input[type=text],.mc-auth-login input[type=password]{box-sizing:border-box;width:100%;padding:9px}.mc-auth-sso{box-sizing:border-box;width:100%;text-align:center}.mc-auth-divider{display:flex;align-items:center;gap:10px;color:#646970;margin:14px 0}.mc-auth-divider:before,.mc-auth-divider:after{content:"";height:1px;background:#dcdcde;flex:1}.mc-auth-alert{padding:10px;margin-bottom:12px;border-left:4px solid #d63638;background:#fcf0f1}.mc-auth-list ul{list-style:none;margin:0;padding:0}.mc-auth-list li{padding:10px 0;border-bottom:1px solid #eee}.mc-auth-list time{display:block;color:#646970}.mc-auth-profile{display:grid;gap:4px;padding:16px;border:1px solid #dcdcde;border-radius:8px}
.mc-auth-dashboard{--mc-blue:#163a5f;--mc-teal:#0c7c86;--mc-border:#dbe4ea;display:grid;gap:22px}.mc-auth-dashboard-hero{display:flex;align-items:center;gap:18px;padding:24px;border-radius:14px;background:linear-gradient(135deg,var(--mc-blue),#245f84);color:#fff}.mc-auth-dashboard-hero h2,.mc-auth-dashboard-hero p{margin:0;color:inherit}.mc-auth-dashboard-hero .button{margin-left:auto}.mc-auth-avatar{display:grid;place-items:center;width:58px;height:58px;flex:0 0 58px;border-radius:50%;background:#fff;color:var(--mc-blue);font-size:24px;font-weight:700}.mc-auth-eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:700;opacity:.75}.mc-auth-dashboard-section{padding:20px;border:1px solid var(--mc-border);border-radius:12px;background:#fff}.mc-auth-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-bottom:14px}.mc-auth-section-heading h3,.mc-auth-section-heading p{margin:0}.mc-auth-stat-grid,.mc-auth-resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.mc-auth-stat-grid>div{padding:14px;border-radius:8px;background:#f4f8fa}.mc-auth-stat-grid span{display:block;color:#617484;font-size:12px}.mc-auth-stat-grid strong{display:block;margin-top:4px}.mc-auth-chip-row{display:flex;flex-wrap:wrap;gap:8px}.mc-auth-chip-row span{padding:6px 10px;border-radius:999px;background:#e7f5f6;color:#075b62;font-size:13px}.mc-auth-dashboard-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.mc-auth-resource-grid article{padding:16px;border:1px solid var(--mc-border);border-radius:9px}.mc-auth-resource-grid article>span{color:var(--mc-teal);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.mc-auth-resource-grid h4{margin:6px 0}.mc-auth-list--cards ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.mc-auth-list--cards li{padding:16px;border:1px solid var(--mc-border,#dbe4ea);border-radius:9px}.mc-auth-list--compact li{padding:7px 0;font-size:14px}@media(max-width:720px){.mc-auth-dashboard-columns{grid-template-columns:1fr}.mc-auth-dashboard-hero{align-items:flex-start;flex-wrap:wrap}.mc-auth-dashboard-hero .button{margin-left:0}.mc-auth-section-heading{display:block}}
.mc-auth-directory-search{margin:0 0 22px;padding:16px;border:1px solid #dbe4ea;border-radius:10px;background:#f7fafb}.mc-auth-directory-search>div{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.mc-auth-directory-search label{flex:1 1 150px}.mc-auth-directory-search label span{display:block;margin-bottom:4px;font-size:12px;font-weight:600}.mc-auth-directory-search input{box-sizing:border-box;width:100%;padding:8px}.mc-auth-directory-results{display:grid;gap:14px}.mc-auth-directory--grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.mc-auth-directory--list,.mc-auth-directory--compact{grid-template-columns:1fr}.mc-auth-directory-card{display:flex;gap:14px;padding:18px;border:1px solid #dbe4ea;border-radius:10px;background:#fff}.mc-auth-directory-card h3,.mc-auth-directory-card p{margin:0 0 7px}.mc-auth-directory-initial{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:#e7f5f6;color:#075b62;font-weight:700}.mc-auth-directory-type{display:inline-block;padding:3px 7px;border-radius:999px;background:#eef2f5;font-size:11px}.mc-auth-directory--compact .mc-auth-directory-card{padding:10px;border-width:0 0 1px;border-radius:0}.mc-auth-directory--compact .mc-auth-directory-initial{width:34px;height:34px;flex-basis:34px}.mc-auth-directory--compact h3{font-size:15px}.mc-auth-directory--compact p,.mc-auth-directory--compact address{display:none}.mc-auth-pagination ul{display:flex;flex-wrap:wrap;gap:5px;list-style:none;margin:22px 0 0;padding:0}.mc-auth-pagination a,.mc-auth-pagination span{display:block;padding:6px 10px;border:1px solid #dbe4ea;border-radius:5px}.mc-auth-virtual-page{padding:40px 20px}.mc-auth-virtual-inner{max-width:1180px;margin:0 auto}.mc-auth-profile-detail{max-width:800px}.mc-auth-profile-detail .mc-auth-directory-card{margin-top:16px}

.mc-auth-self-profile dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:0 0 22px}.mc-auth-self-profile dl>div{padding:13px;border:1px solid #dbe4ea;border-radius:8px}.mc-auth-self-profile dt{font-size:12px;color:#617484}.mc-auth-self-profile dd{margin:4px 0 0;font-weight:600}.mc-auth-self-profile form,.mc-auth-registration{display:grid;gap:12px;max-width:680px;padding:20px;border:1px solid #dbe4ea;border-radius:10px;background:#fff}.mc-auth-self-profile form label,.mc-auth-registration label{display:grid;gap:4px}.mc-auth-self-profile form input,.mc-auth-registration input{box-sizing:border-box;width:100%;padding:9px}.mc-auth-notice{padding:12px;margin:0 0 16px;border-left:4px solid #0c7c86;background:#e7f5f6}.mc-auth-education{overflow-x:auto}.mc-auth-education table{width:100%;border-collapse:collapse}.mc-auth-education th,.mc-auth-education td{padding:10px;text-align:left;border-bottom:1px solid #dbe4ea}.mc-auth-organizations{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.mc-auth-organizations article{padding:18px;border:1px solid #dbe4ea;border-radius:10px}.mc-auth-organizations h3,.mc-auth-organizations p{margin:0 0 8px}
.mc-auth-organizations--list,.mc-auth-organizations--compact{grid-template-columns:1fr}.mc-auth-organizations--compact{gap:0}.mc-auth-organizations--compact article{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:10px 0;border-width:0 0 1px;border-radius:0}.mc-auth-organizations--compact h3,.mc-auth-organizations--compact p{margin:0}

.mc-auth-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* The close button */
#pi_mca .closebtn {
  margin-left: 15px;
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

/* When moving the mouse over the close button */
#pi_mca .closebtn:hover {
  color: black;
}
	/* Bordered form */
#pi_mca form {
  border: 3px solid #f1f1f1;
}

/* Full-width inputs */
#pi_mca input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* Set a style for all buttons */
#pi_mca button {
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
}

/* Add a hover effect for buttons */
#pi_mca button:hover {
  opacity: 0.8;
}

/* Extra style for the cancel button (red) */
#pi_mca .cancelbtn {
  width: auto;
  padding: 10px 18px;
  background-color: #f44336;
}

/* Center the avatar image inside this container */
#pi_mca .imgcontainer {
  text-align: center;
  margin: 24px 0 12px 0;
}

/* Avatar image */
#pi_mca img.avatar {
  width: 40%;
  border-radius: 50%;
}

/* Add padding to containers */
#pi_mca .container {
  padding: 16px;
}

/* The "Forgot password" text */
#pi_mca span.psw {
  float: right;
  padding-top: 16px;
}
#pi_mca span.register {
  float: right;
  padding-top: 16px;
  margin-right:20px;
}
/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
 #pi_mca span.psw {
    display: block;
    float: none;
  }
 #pi_mca .cancelbtn {
    width: 100%;
  }
}
/* Fixed directory grid column choice. */
.mc-auth-directory--grid.mc-auth-directory-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-auth-directory--grid.mc-auth-directory-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.mc-auth-directory--grid.mc-auth-directory-columns-2,.mc-auth-directory--grid.mc-auth-directory-columns-3{grid-template-columns:1fr}}
.mc-auth-directory{color:var(--mc-dir-text,#1d2327)}.mc-auth-directory .mc-auth-directory-card{border-color:var(--mc-dir-border,#dbe4ea);background:var(--mc-dir-card,#fff);color:var(--mc-dir-text,#1d2327)}.mc-auth-directory .mc-auth-directory-card a,.mc-auth-directory .mc-auth-pagination a{color:var(--mc-dir-accent,#2271b1)}.mc-auth-directory .mc-auth-directory-initial,.mc-auth-directory .mc-auth-directory-type{color:var(--mc-dir-accent,#2271b1)}.mc-auth-directory .mc-auth-directory-search,.mc-auth-directory .mc-auth-pagination a,.mc-auth-directory .mc-auth-pagination span{border-color:var(--mc-dir-border,#dbe4ea)}
/* Per-feature Member Portal design variables. */
.mc-auth-page-feature{color:var(--mc-portal-text,#1d2327)}.mc-auth-page-feature .mc-auth-section-title,.mc-auth-page-feature a{color:var(--mc-portal-accent,#2271b1)}.mc-auth-page-feature .mc-auth-dashboard-section,.mc-auth-page-feature .mc-auth-directory-card,.mc-auth-page-feature .mc-auth-list li,.mc-auth-page-feature .mc-auth-resource-grid article,.mc-auth-page-feature .mc-auth-organizations article,.mc-auth-page-feature .mc-auth-self-profile,.mc-auth-page-feature .mc-auth-registration,.mc-auth-page-feature .mc-auth-login{border-color:var(--mc-portal-border,#dbe4ea);background:var(--mc-portal-bg,#fff);color:var(--mc-portal-text,#1d2327)}.mc-auth-page-feature button,.mc-auth-page-feature .button{border-color:var(--mc-portal-accent,#2271b1);background:var(--mc-portal-accent,#2271b1);color:#fff}
.mc-auth-page-feature .mc-auth-dashboard-hero{background:var(--mc-portal-accent,#2271b1)}.mc-auth-page-feature .mc-auth-dashboard-hero,.mc-auth-page-feature .mc-auth-dashboard-hero h2,.mc-auth-page-feature .mc-auth-dashboard-hero p{color:#fff}
/* Branded guest and zero-result states. */
.mc-auth-portal-guest{max-width:760px;padding:24px;border:1px solid var(--mc-portal-border,#dbe4ea);border-radius:14px;background:var(--mc-portal-bg,#fff);color:var(--mc-portal-text,#1d2327)}.mc-auth-portal-guest>header{display:flex;gap:14px;align-items:flex-start;margin-bottom:18px}.mc-auth-portal-guest h2,.mc-auth-portal-guest p{margin:0 0 6px}.mc-auth-guest-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:50%;background:var(--mc-portal-accent,#2271b1);color:#fff;font-size:20px}.mc-auth-portal-guest .mc-auth-sso,.mc-auth-portal-guest button{background:var(--mc-portal-accent,#2271b1);border-color:var(--mc-portal-accent,#2271b1);color:#fff}.mc-auth-dashboard-hero .button{border-color:#fff;background:transparent!important;color:#fff}.mc-auth-directory-empty{padding:28px;border:1px dashed var(--mc-dir-border,#dbe4ea);border-radius:12px;background:color-mix(in srgb,var(--mc-dir-card,#fff) 92%,var(--mc-dir-accent,#2271b1));text-align:center}.mc-auth-directory-empty strong{display:block;font-size:19px}.mc-auth-directory-empty p{margin:7px auto;max-width:600px}.mc-auth-directory-empty a{font-weight:700}
/* Complete portal page templates. The active theme supplies the outer header/footer. */
.mc-auth-page-template{overflow:hidden;border:1px solid var(--mc-portal-border,#dbe4ea);border-radius:18px;background:var(--mc-portal-bg,#fff);color:var(--mc-portal-text,#1d2327)}.mc-auth-template-header{padding:24px 28px;border-bottom:1px solid var(--mc-portal-border,#dbe4ea)}.mc-auth-template-header>span{display:block;margin-bottom:5px;color:var(--mc-portal-accent,#2271b1);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.mc-auth-template-header h2{margin:0;color:var(--mc-portal-text,#1d2327)}.mc-auth-template-layout{display:block}.mc-auth-template-content{padding:28px}.mc-auth-page-template--spotlight{box-shadow:0 18px 48px rgba(25,45,75,.12)}.mc-auth-page-template--spotlight .mc-auth-template-header{padding:45px 34px;background:linear-gradient(135deg,var(--mc-portal-accent,#2271b1),color-mix(in srgb,var(--mc-portal-accent,#2271b1) 72%,#17223b));border:0}.mc-auth-page-template--spotlight .mc-auth-template-header>span,.mc-auth-page-template--spotlight .mc-auth-template-header h2{color:#fff}.mc-auth-page-template--spotlight .mc-auth-template-content{padding:34px}.mc-auth-page-template--sidebar .mc-auth-template-header{padding-left:30%}.mc-auth-page-template--sidebar .mc-auth-template-layout{display:grid;grid-template-columns:minmax(190px,26%) 1fr}.mc-auth-template-sidebar{padding:25px 18px;border-right:1px solid var(--mc-portal-border,#dbe4ea);background:color-mix(in srgb,var(--mc-portal-bg,#fff) 88%,var(--mc-portal-accent,#2271b1))}.mc-auth-template-sidebar>strong{display:block;margin-bottom:12px}.mc-auth-template-sidebar nav{display:grid;gap:4px}.mc-auth-template-sidebar a{display:block;padding:9px 10px;border-radius:7px;text-decoration:none}.mc-auth-template-sidebar a.is-current{background:var(--mc-portal-accent,#2271b1);color:#fff}.mc-auth-page-template--sidebar .mc-auth-template-content{min-width:0}@media(max-width:760px){.mc-auth-page-template--sidebar .mc-auth-template-header{padding-left:24px}.mc-auth-page-template--sidebar .mc-auth-template-layout{grid-template-columns:1fr}.mc-auth-template-sidebar{border-right:0;border-bottom:1px solid var(--mc-portal-border,#dbe4ea)}.mc-auth-template-sidebar nav{display:flex;overflow-x:auto}.mc-auth-template-sidebar a{white-space:nowrap}.mc-auth-template-content,.mc-auth-page-template--spotlight .mc-auth-template-content{padding:20px}}
/* Feature-specific portal template families. The theme supplies the outer shell. */
.mc-auth-page-feature--login .mc-auth-template-content{display:grid;place-items:center;min-height:360px}.mc-auth-page-feature--login .mc-auth-login,.mc-auth-page-feature--login .mc-auth-portal-guest{width:min(100%,480px)}.mc-auth-page-feature--login.mc-auth-page-template--spotlight .mc-auth-template-layout{background:linear-gradient(90deg,color-mix(in srgb,var(--mc-portal-accent) 8%,#fff),var(--mc-portal-bg) 54%)}
.mc-auth-page-feature--dashboard .mc-auth-template-content{background:color-mix(in srgb,var(--mc-portal-bg) 94%,var(--mc-portal-accent))}.mc-auth-page-feature--dashboard.mc-auth-page-template--standard .mc-auth-dashboard-hero{border-radius:12px 12px 4px 4px}.mc-auth-page-feature--dashboard.mc-auth-page-template--spotlight .mc-auth-dashboard{gap:28px}
.mc-auth-page-feature--profile .mc-auth-self-profile>dl{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-auth-page-feature--profile.mc-auth-page-template--spotlight .mc-auth-self-profile>dl>div:first-child{grid-column:1/-1;padding:24px;border-left:5px solid var(--mc-portal-accent)}
.mc-auth-page-feature--my_events .mc-auth-list li,.mc-auth-page-feature--events .mc-auth-list li{position:relative;padding-left:24px}.mc-auth-page-feature--my_events .mc-auth-list li:before,.mc-auth-page-feature--events .mc-auth-list li:before{content:"";position:absolute;left:4px;top:17px;width:8px;height:8px;border-radius:50%;background:var(--mc-portal-accent)}
.mc-auth-page-feature--education .mc-auth-education table{border:1px solid var(--mc-portal-border);border-radius:10px;background:var(--mc-portal-bg)}.mc-auth-page-feature--education .mc-auth-education th{background:color-mix(in srgb,var(--mc-portal-bg) 84%,var(--mc-portal-accent));color:var(--mc-portal-text)}
.mc-auth-page-feature--groups .mc-auth-list--cards li{border-top:4px solid var(--mc-portal-accent)}.mc-auth-page-feature--groups.mc-auth-page-template--spotlight .mc-auth-list--cards ul{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.mc-auth-page-feature--directory .mc-auth-directory-search{border-left:5px solid var(--mc-portal-accent)}.mc-auth-page-feature--directory.mc-auth-page-template--spotlight .mc-auth-directory-results{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.mc-auth-page-feature--organizations .mc-auth-organizations article{border-top:4px solid var(--mc-portal-accent)}.mc-auth-page-feature--organizations.mc-auth-page-template--spotlight .mc-auth-organizations article:first-child{grid-column:span 2;padding:28px}
.mc-auth-page-feature--registration .mc-auth-template-content{display:grid;place-items:center}.mc-auth-page-feature--registration .mc-auth-registration{width:min(100%,720px)}.mc-auth-page-feature--registration.mc-auth-page-template--spotlight .mc-auth-registration{box-shadow:0 14px 35px rgba(25,45,75,.1)}
@media(max-width:760px){.mc-auth-page-feature--profile .mc-auth-self-profile>dl{grid-template-columns:1fr}.mc-auth-page-feature--organizations.mc-auth-page-template--spotlight .mc-auth-organizations article:first-child{grid-column:auto}}


/* ════════════════════════════════════════════════════════════
   PI WP Suite — UI Theme System
   mc-auth-theme--card  |  mc-auth-theme--glass  |  mc-auth-theme--flat
   Applied as class on .mc-auth-page-feature wrapper
════════════════════════════════════════════════════════════ */

/* ── Shared base ── */
.mc-auth-page-feature{
  --portal-accent:  var(--mc-portal-accent,  #2271b1);
  --portal-bg:      var(--mc-portal-bg,      #ffffff);
  --portal-text:    var(--mc-portal-text,    #1d2327);
  --portal-border:  var(--mc-portal-border,  #dbe4ea);
  color: var(--portal-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ══════════════════════════════
   CARD UI — clean elevated boxes
══════════════════════════════ */
.mc-auth-theme--card .mc-auth-page-feature,
.mc-auth-theme--card{
  background: var(--portal-bg);
}
.mc-auth-theme--card .mc-auth-template-header{
  padding: 28px 32px 24px;
  background: var(--portal-bg);
  border-bottom: 1px solid var(--portal-border);
}
.mc-auth-theme--card .mc-auth-template-header h1,
.mc-auth-theme--card .mc-auth-template-header h2{
  color: var(--portal-text);
  margin: 0 0 6px;
}
.mc-auth-theme--card .mc-auth-dashboard-section,
.mc-auth-theme--card .mc-auth-directory-card,
.mc-auth-theme--card .mc-auth-organizations article,
.mc-auth-theme--card .mc-auth-resource-grid article,
.mc-auth-theme--card .mc-auth-self-profile form,
.mc-auth-theme--card .mc-auth-registration{
  background: var(--portal-bg);
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.mc-auth-theme--card .mc-auth-sso-button,
.mc-auth-theme--card .mc-auth-form-submit,
.mc-auth-theme--card .mc-auth-btn-primary{
  background: var(--portal-accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: opacity .15s;
}
.mc-auth-theme--card .mc-auth-sso-button:hover,
.mc-auth-theme--card .mc-auth-btn-primary:hover{ opacity: .88; }
.mc-auth-theme--card .mc-auth-dashboard-hero{
  background: var(--portal-accent);
  border-radius: 14px;
  color: #fff;
}
.mc-auth-theme--card a{
  color: var(--portal-accent);
}

/* ══════════════════════════════
   GLASS UI — frosted transparent
   macOS-style translucent panels
══════════════════════════════ */
.mc-auth-theme--glass{
  background: linear-gradient(135deg, color-mix(in srgb, var(--portal-accent) 8%, transparent), color-mix(in srgb, var(--portal-bg) 60%, transparent));
  backdrop-filter: blur(0);
}
.mc-auth-theme--glass .mc-auth-template-header{
  padding: 28px 32px 24px;
  background: rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mc-auth-theme--glass .mc-auth-template-header h1,
.mc-auth-theme--glass .mc-auth-template-header h2{
  color: var(--portal-text);
  margin: 0 0 6px;
}
.mc-auth-theme--glass .mc-auth-dashboard-section,
.mc-auth-theme--glass .mc-auth-directory-card,
.mc-auth-theme--glass .mc-auth-organizations article,
.mc-auth-theme--glass .mc-auth-resource-grid article,
.mc-auth-theme--glass .mc-auth-self-profile form,
.mc-auth-theme--glass .mc-auth-registration{
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.7);
}
.mc-auth-theme--glass .mc-auth-sso-button,
.mc-auth-theme--glass .mc-auth-form-submit,
.mc-auth-theme--glass .mc-auth-btn-primary{
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  color: var(--portal-accent);
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .15s;
}
.mc-auth-theme--glass .mc-auth-sso-button:hover,
.mc-auth-theme--glass .mc-auth-btn-primary:hover{
  background: rgba(255,255,255,.55);
}
.mc-auth-theme--glass .mc-auth-dashboard-hero{
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--portal-text);
}
.mc-auth-theme--glass .mc-auth-stat-grid>div{
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mc-auth-theme--glass a{ color: var(--portal-accent); }
.mc-auth-theme--glass .mc-auth-chip-row span{
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}

/* ══════════════════════════════
   FLAT UI — no shadows, no borders
   clean and minimal
══════════════════════════════ */
.mc-auth-theme--flat{
  background: var(--portal-bg);
}
.mc-auth-theme--flat .mc-auth-template-header{
  padding: 28px 32px 24px;
  background: color-mix(in srgb, var(--portal-accent) 6%, var(--portal-bg));
  border-bottom: 2px solid var(--portal-accent);
}
.mc-auth-theme--flat .mc-auth-template-header h1,
.mc-auth-theme--flat .mc-auth-template-header h2{
  color: var(--portal-text);
  margin: 0 0 6px;
}
.mc-auth-theme--flat .mc-auth-dashboard-section,
.mc-auth-theme--flat .mc-auth-directory-card,
.mc-auth-theme--flat .mc-auth-organizations article,
.mc-auth-theme--flat .mc-auth-resource-grid article,
.mc-auth-theme--flat .mc-auth-self-profile form,
.mc-auth-theme--flat .mc-auth-registration{
  background: var(--portal-bg);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--portal-border);
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
.mc-auth-theme--flat .mc-auth-sso-button,
.mc-auth-theme--flat .mc-auth-form-submit,
.mc-auth-theme--flat .mc-auth-btn-primary{
  background: transparent;
  border: 2px solid var(--portal-accent);
  border-radius: 0;
  color: var(--portal-accent);
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  transition: background .15s, color .15s;
}
.mc-auth-theme--flat .mc-auth-sso-button:hover,
.mc-auth-theme--flat .mc-auth-btn-primary:hover{
  background: var(--portal-accent);
  color: #fff;
}
.mc-auth-theme--flat .mc-auth-dashboard-hero{
  background: color-mix(in srgb, var(--portal-accent) 10%, var(--portal-bg));
  border-radius: 0;
  border-left: 4px solid var(--portal-accent);
  color: var(--portal-text);
}
.mc-auth-theme--flat .mc-auth-stat-grid>div{
  background: transparent;
  border-bottom: 2px solid var(--portal-accent);
  border-radius: 0;
}
.mc-auth-theme--flat a{ color: var(--portal-accent); }
.mc-auth-theme--flat .mc-auth-chip-row span{
  background: transparent;
  border: 1px solid var(--portal-accent);
  color: var(--portal-accent);
  border-radius: 0;
}
.mc-auth-theme--flat .mc-auth-directory-initial{
  border-radius: 0;
}

/* ── Template layouts (independent of theme) ── */
/* Spotlight layout: full-width header band */
.mc-auth-page-template--spotlight .mc-auth-template-header{
  padding: 40px 32px;
  text-align: center;
}
.mc-auth-theme--card.mc-auth-page-template--spotlight .mc-auth-template-header{
  background: var(--portal-accent);
}
.mc-auth-theme--card.mc-auth-page-template--spotlight .mc-auth-template-header h1,
.mc-auth-theme--card.mc-auth-page-template--spotlight .mc-auth-template-header h2,
.mc-auth-theme--card.mc-auth-page-template--spotlight .mc-auth-template-header p,
.mc-auth-theme--card.mc-auth-page-template--spotlight .mc-auth-template-header span{
  color: #fff;
}
.mc-auth-theme--glass.mc-auth-page-template--spotlight .mc-auth-template-header{
  background: rgba(255,255,255,.22);
}
.mc-auth-theme--flat.mc-auth-page-template--spotlight .mc-auth-template-header{
  background: transparent;
  border-left: none;
  border-bottom: 3px solid var(--portal-accent);
  text-align: left;
}

/* Sidebar layout */
.mc-auth-page-template--sidebar .mc-auth-template-layout{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: 400px;
}
.mc-auth-theme--card .mc-auth-template-sidebar{
  padding: 24px 16px;
  background: color-mix(in srgb, var(--portal-accent) 5%, var(--portal-bg));
  border-right: 1px solid var(--portal-border);
  border-radius: 0 0 0 12px;
}
.mc-auth-theme--glass .mc-auth-template-sidebar{
  background: rgba(255,255,255,.22);
  border-right: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mc-auth-theme--flat .mc-auth-template-sidebar{
  background: transparent;
  border-right: 2px solid var(--portal-accent);
}
.mc-auth-template-sidebar nav a{
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--portal-text);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 3px;
}
.mc-auth-template-sidebar nav a:hover,
.mc-auth-template-sidebar nav a.is-current{
  background: color-mix(in srgb, var(--portal-accent) 12%, transparent);
  color: var(--portal-accent);
}
.mc-auth-theme--flat .mc-auth-template-sidebar nav a.is-current{
  border-left: 3px solid var(--portal-accent);
  border-radius: 0;
  padding-left: 9px;
}
.mc-auth-template-content{
  padding: 28px 32px;
}

/* Full-width layout */
.mc-auth-page-template--standard .mc-auth-template-content{
  padding: 28px 32px;
}

@media(max-width:680px){
  .mc-auth-page-template--sidebar .mc-auth-template-layout{
    grid-template-columns: 1fr;
  }
  .mc-auth-template-content{ padding: 20px 16px; }
}
