
/*
 EJA SITE SHELL — REQUIRED FOR EVERY USER-FACING PAGE
 Rule: every public or authenticated HTML/PHP-rendered page must include this file
 and use .eja-site-header, .eja-site-main, and .eja-site-footer.
*/
:root{
  --eja-purple:#6a00d9;
  --eja-purple-2:#8a00e8;
  --eja-purple-dark:#4b0098;
  --eja-orange:#ff9b46;
  --eja-cyan:#43c5ff;
  --eja-ink:#111111;
  --eja-muted:#656565;
  --eja-line:#e9e9ee;
  --eja-lav:#f6efff;
  --eja-white:#ffffff;
  --eja-shell-max:1120px;
  --eja-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;background:#fff}
body.eja-shell{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  font-family:var(--eja-font);
  color:var(--eja-ink);
  background:
    radial-gradient(circle at 100% 4%,rgba(67,197,255,.16),transparent 28%),
    radial-gradient(circle at 0% 100%,rgba(255,155,70,.14),transparent 30%),
    #fff;
  overflow-x:hidden;
}
.eja-site-header{
  position:sticky;
  top:0;
  z-index:100;
  min-height:88px;
  padding:14px max(18px,env(safe-area-inset-right)) 14px max(18px,env(safe-area-inset-left));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--eja-line);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.eja-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  text-decoration:none;
  color:inherit;
}
.eja-brand-logo{
  display:block;
  height:58px;
  width:auto;
  max-width:235px;
  object-fit:contain;
}
.eja-site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.eja-nav-link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 13px;
  border-radius:10px;
  color:var(--eja-purple);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
.eja-nav-link:hover,.eja-nav-link:focus-visible{background:var(--eja-lav);outline:none}
.eja-nav-link.eja-nav-primary{
  background:linear-gradient(90deg,var(--eja-purple),var(--eja-purple-2));
  color:#fff;
}
.eja-site-main{
  width:min(100% - 28px,var(--eja-shell-max));
  min-height:calc(100dvh - 190px);
  margin-inline:auto;
  padding-bottom:64px;
}
.eja-page-hero{
  margin:24px auto 20px;
  padding:34px 34px;
  border-radius:28px;
  background:linear-gradient(135deg,#fff5ea 0%,#f8f5ff 50%,#eef7ff 100%);
  border:1px solid #eee8f4;
  box-shadow:0 12px 34px rgba(52,18,91,.08);
}
.eja-eyebrow{
  color:var(--eja-purple);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  font-weight:900;
}
.eja-page-title{
  margin:8px 0 12px;
  font-size:clamp(36px,6vw,60px);
  line-height:.98;
  letter-spacing:-.035em;
  font-weight:900;
}
.eja-page-copy{
  max-width:720px;
  margin:0;
  color:var(--eja-muted);
  font-size:17px;
  line-height:1.6;
}
.eja-card{
  width:min(100%,720px);
  margin:0 auto;
  padding:30px;
  border:1px solid var(--eja-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(52,18,91,.10);
}
.eja-card h1,.eja-card h2,.eja-card h3{font-family:var(--eja-font)}
.eja-field{margin:0 0 16px}
.eja-field label{
  display:block;
  margin:0 0 8px;
  font-size:14px;
  font-weight:800;
}
.eja-field input,.eja-field select,.eja-field textarea{
  width:100%;
  min-height:54px;
  padding:15px 16px;
  border:1.5px solid #cbcbd4;
  border-radius:10px;
  background:#fff;
  color:var(--eja-ink);
  font:inherit;
  font-size:16px;
  outline:none;
}
.eja-field input:focus,.eja-field select:focus,.eja-field textarea:focus{
  border-color:var(--eja-purple);
  box-shadow:0 0 0 3px rgba(106,0,217,.11);
}
.eja-btn{
  width:100%;
  min-height:54px;
  border:0;
  border-radius:10px;
  padding:14px 18px;
  font:800 15px/1 var(--eja-font);
  text-transform:uppercase;
  cursor:pointer;
  touch-action:manipulation;
}
.eja-btn-primary{background:linear-gradient(90deg,var(--eja-purple),var(--eja-purple-2));color:#fff}
.eja-btn-secondary{background:#fff;color:var(--eja-purple);border:2px solid var(--eja-purple)}
.eja-status{
  display:none;
  margin-top:16px;
  padding:13px 14px;
  border-radius:10px;
  background:#f7f4fb;
  color:#4b4452;
  font-size:14px;
  line-height:1.45;
}
.eja-site-footer{
  width:min(100% - 28px,var(--eja-shell-max));
  margin:0 auto;
  padding:24px 0 max(26px,env(safe-area-inset-bottom));
  border-top:1px solid var(--eja-line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:#6f6a78;
  font-size:12px;
}
.eja-site-footer strong{color:var(--eja-purple-dark)}
.eja-mobile-only{display:none}
@media(max-width:760px){
  .eja-site-header{min-height:76px;padding-top:max(10px,env(safe-area-inset-top));gap:10px}
  .eja-brand-logo{height:48px;max-width:180px}
  .eja-site-nav{gap:4px}
  .eja-nav-link{padding:9px 9px;font-size:11px}
  .eja-site-main{width:min(100% - 18px,680px);padding-bottom:40px}
  .eja-page-hero{margin-top:14px;padding:24px 18px;border-radius:20px}
  .eja-page-title{font-size:clamp(34px,11vw,48px)}
  .eja-page-copy{font-size:16px}
  .eja-card{padding:22px 16px;border-radius:16px}
  .eja-site-footer{width:min(100% - 18px,680px);align-items:flex-start;flex-direction:column}
}
@media(max-width:440px){
  .eja-brand-logo{height:42px;max-width:150px}
  .eja-nav-link:not(.eja-nav-primary){display:none}
  .eja-mobile-only{display:inline-flex}
}


/* === EJA SHELL POLISH v2 === */
.eja-site-header{
  border-top:0;
  min-height:82px;
  padding-top:16px;
}
.eja-myeja-wordmark{
  display:inline-flex;
  align-items:baseline;
  font-family:var(--eja-font);
  font-size:24px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.035em;
  white-space:nowrap;
}
.eja-myeja-wordmark .my{color:var(--eja-purple)}
.eja-myeja-wordmark .eja{color:var(--eja-orange)}
.eja-header-product{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:0;
}
.eja-header-divider{
  width:1px;
  height:34px;
  background:var(--eja-line);
}
.eja-header-subtitle{
  color:#6d6874;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.eja-photo-card{
  overflow:hidden;
  border-radius:18px;
  border:1px solid #eee8f4;
  background:#fff;
}
.eja-photo-card img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 43%;
}
.eja-login-layout{
  display:grid;
  grid-template-columns:minmax(260px,.88fr) minmax(360px,1.12fr);
  gap:28px;
  align-items:stretch;
  margin-top:20px;
}
.eja-login-photo{
  min-height:460px;
}
.eja-login-panel{
  display:flex;
  align-items:center;
}
.eja-login-panel .eja-card{
  width:100%;
  margin:0;
}
.eja-activation-layout{
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(390px,1.1fr);
  gap:28px;
  align-items:stretch;
  margin-top:20px;
}
.eja-activation-story{
  min-height:500px;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:
    linear-gradient(145deg,rgba(255,155,70,.24),rgba(246,239,255,.76) 50%,rgba(67,197,255,.20)),
    #fff;
  border:1px solid #eee8f4;
  border-radius:22px;
}
.eja-activation-story h1{
  margin:10px 0 18px;
  font-size:clamp(42px,5vw,64px);
  line-height:.94;
  letter-spacing:-.045em;
}
.eja-activation-panel{
  display:flex;
  align-items:center;
}
.eja-activation-panel .eja-card{width:100%;margin:0}
.eja-lock-note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:16px;
  padding:13px;
  border-radius:12px;
  background:#f7f1ff;
  color:#5f5867;
  font-size:12px;
  line-height:1.45;
}
.eja-footer-links{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.eja-footer-links a{color:var(--eja-purple);font-weight:700;text-decoration:none}
@media(max-width:900px){
  .eja-site-main{width:min(100% - 22px,760px)}
  .eja-login-layout,.eja-activation-layout{grid-template-columns:1fr}
  .eja-login-photo{min-height:280px;max-height:340px}
  .eja-activation-story{min-height:300px}
}
@media(max-width:760px){
  .eja-site-header{min-height:70px;padding:11px 12px}
  .eja-brand-logo{height:44px;max-width:160px}
  .eja-header-product{gap:10px}
  .eja-header-divider{height:28px}
  .eja-myeja-wordmark{font-size:20px}
  .eja-header-subtitle{font-size:9px;white-space:normal;line-height:1.1;max-width:130px}
  .eja-site-main{width:min(100% - 16px,680px)}
  .eja-page-hero{padding:20px 16px;margin-top:12px}
  .eja-login-layout,.eja-activation-layout{gap:14px;margin-top:14px}
  .eja-login-photo{display:block;min-height:190px;max-height:220px}
  .eja-activation-story{
    min-height:auto;
    padding:22px 18px;
  }
  .eja-activation-story .eja-photo-card{
    height:170px;
    margin:-6px -2px 20px;
  }
  .eja-activation-story h1{font-size:38px}
  .eja-card{padding:20px 16px}
  .eja-site-footer{padding-top:18px}
}
@media(max-width:430px){
  .eja-site-header{align-items:center}
  .eja-brand-logo{height:40px;max-width:140px}
  .eja-header-product{gap:8px}
  .eja-header-subtitle{display:none}
  .eja-myeja-wordmark{font-size:19px}
  .eja-login-photo{min-height:165px}
  .eja-page-title{font-size:36px}
}

/* Permanent rule: no decorative site-wide bar above the EJA header. */
body.eja-shell::before{display:none !important;content:none !important}
.eja-site-header{border-top:0 !important}

/* EJA orange action system */
:root{--eja-orange-action:#f28a22;--eja-orange-action-dark:#d96f08}
.eja-btn-orange,.eja-btn-primary{background:linear-gradient(90deg,var(--eja-orange-action),#ffad45)!important;color:#17121f!important}
.eja-btn-orange:hover,.eja-btn-primary:hover{background:linear-gradient(90deg,var(--eja-orange-action-dark),var(--eja-orange-action))!important}
#entryGateway .gateway-option .icon{background:linear-gradient(145deg,var(--eja-orange-action),#ffb85a)!important;color:#fff!important;box-shadow:0 6px 14px rgba(242,138,34,.22)}
#entryGateway .gateway-option{border-color:#ead8c4}
#entryGateway .gateway-option:hover,#entryGateway .gateway-option:focus{border-color:var(--eja-orange-action)}
#entryGateway .myeja-card{background:linear-gradient(135deg,#6a00d9,#7d43e6)!important;border-color:#6a00d9!important}
#entryGateway .myeja-card .icon{background:linear-gradient(145deg,var(--eja-orange-action),#ffb85a)!important}
