/*
 * GCEJai Royal Gold login fix v6.2 - desktop benefit layout.
 * Public Student/Teacher LOGIN only; no registration or portal modifications.
 * Three benefit cards use real text spans, never a sc-for flex wrapper.
 */
body.gj5-entry-page.gj5-entry-login .gj6-login-screen{
  display:grid!important;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important;
  max-width:1600px;
  margin-inline:auto;
  min-height:max(600px,calc(100vh - 150px))!important;
  background:#F3F6FB!important;
  align-items:stretch;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:stretch!important;
  min-width:0!important;
  width:100%;
  padding:clamp(38px,5.2vw,80px)!important;
  overflow:hidden;
  background:linear-gradient(137deg,#061934,#084CAC 76%,#155CBC)!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher .gj6-login-screen>div:first-child{
  background:linear-gradient(140deg,#07192F 0%,#152D53 61%,#6C501B 135%)!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>img{
  display:block!important;
  align-self:flex-start!important;
  width:auto!important;
  max-width:min(190px,80%)!important;
  height:55px!important;
  object-fit:contain;
  object-position:left center;
  margin:0!important;
  flex:none!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>div:nth-child(2){
  width:100%!important;
  max-width:540px!important;
  font-size:clamp(30px,3vw,47px)!important;
  font-weight:900!important;
  letter-spacing:-.053em!important;
  line-height:1.14!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  margin-top:25px!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>div:nth-child(3){
  width:100%!important;
  max-width:505px!important;
  font-size:14px!important;
  line-height:1.75!important;
  color:#D4E4FC!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  margin-top:17px!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-benefits{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:10px!important;
  flex:none!important;
  min-width:0!important;
  width:100%!important;
  max-width:490px!important;
  margin-top:27px!important;
  padding:0!important;
  background:none!important;
  border:0!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-benefit{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:25px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  padding:12px 14px!important;
  color:#FFF!important;
  background:rgba(255,255,255,.07)!important;
  border:1px solid rgba(255,255,255,.15)!important;
  border-radius:13px!important;
  font-family:Inter,system-ui,sans-serif!important;
  text-align:left!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher .gj6-login-benefit{
  background:rgba(244,202,98,.06)!important;
  border-color:rgba(244,202,98,.21)!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-check{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  flex:none!important;
  width:25px!important;
  height:25px!important;
  min-width:25px!important;
  min-height:25px!important;
  margin:0!important;
  padding:0!important;
  border-radius:9px!important;
  background:linear-gradient(140deg,#FBE39A,#F8C641)!important;
  color:#09234C!important;
  font-size:15px!important;
  font-weight:950!important;
  line-height:1!important;
  box-shadow:none!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-benefit-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:#FFF!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  font-family:Inter,system-ui,sans-serif!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-benefit-copy strong{
  display:block!important;
  color:#FFF!important;
  font:850 12.4px/1.45 Inter,system-ui,sans-serif!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-benefit-copy small{
  display:block!important;
  color:#CDDEFA!important;
  font:450 11px/1.5 Inter,system-ui,sans-serif!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:nth-child(2){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  padding:clamp(22px,4vw,56px)!important;
  background:radial-gradient(ellipse at 90% 4%,#EAF2FF,transparent 40%),#F3F6FB!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:nth-child(2)>div{
  box-sizing:border-box;
  min-width:0;
  width:100%!important;
  max-width:450px!important;
  padding:clamp(23px,3vw,36px)!important;
  border-radius:23px!important;
  border:1px solid #E1E9F4!important;
  background:#FFF!important;
  box-shadow:0 22px 49px rgba(7,30,69,.085)!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-route{
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
  margin:0 0 12px!important;
  padding:12px 13px!important;
  background:#EDF4FF!important;
  border:1px solid #DCE7F8!important;
  border-radius:12px!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher .gj6-login-route{
  background:#FFF6E2!important;
  border-color:#F0DEB8!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-route-type{
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  min-width:0!important;
  font-size:11.5px!important;
  font-weight:850!important;
  color:#084CAC!important;
  white-space:normal!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher .gj6-login-route-type{
  color:#876020!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-route-icon{
  display:inline-grid!important;
  place-items:center!important;
  min-width:22px!important;
  width:22px!important;
  height:22px!important;
  padding:0!important;
  margin:0!important;
  border-radius:8px!important;
  background:#D8E7FC!important;
  color:#084CAC!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher .gj6-login-route-icon{
  background:#F2DA9F!important;
  color:#745218!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-route>a{
  color:#084CAC!important;
  font-size:10.8px!important;
  font-weight:850!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
  white-space:nowrap!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher .gj6-login-route>a{
  color:#876020!important;
}
body.gj5-entry-page.gj5-entry-login .gj6-login-screen input{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  font-size:16px!important;
}
@media(max-width:1040px){
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen{
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child{
    padding:35px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>div:nth-child(2){
    font-size:clamp(26px,3.4vw,39px)!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:nth-child(2){
    padding:26px!important;
  }
}
@media(max-width:820px){
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child{
    padding:24px 27px!important;
    min-height:0!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>div:nth-child(2){
    margin-top:10px!important;
    font-size:27px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>div:nth-child(3){
    margin-top:9px!important;
    font-size:12px!important;
    line-height:1.55!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-benefits{
    display:none!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:nth-child(2){
    padding:22px 18px 37px!important;
  }
}
@media(max-width:430px){
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child{
    padding:20px 19px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>img{
    height:40px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:first-child>div:nth-child(2){
    font-size:25px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:nth-child(2){
    padding:17px 13px 28px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen>div:nth-child(2)>div{
    padding:21px 17px!important;
    border-radius:17px!important;
  }
  body.gj5-entry-page.gj5-entry-login .gj6-login-route{
    padding:10px 11px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.gj5-entry-page.gj5-entry-login .gj6-login-screen *{
    animation:none!important;
    transition:none!important;
  }
}

/* v6.2 specificity guard: legacy "fourth div > div > span" rules from entry.css
   set width/height:9px!important on BOTH spans. A stronger selector prevents
   label compression while leaving signup and the app unaffected. */
body.gj5-entry-page.gj5-entry-login
[data-screen-label="Login"]>div:first-child>
div.gj6-login-benefits>div.gj6-login-benefit{
  display:grid!important;
  grid-template-columns:25px minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  align-items:center!important;
  gap:11px!important;
  padding:12px 14px!important;
  border-radius:13px!important;
}
body.gj5-entry-page.gj5-entry-login
[data-screen-label="Login"]>div:first-child>
div.gj6-login-benefits>div.gj6-login-benefit>span.gj6-login-check{
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  min-width:25px!important;
  min-height:25px!important;
  padding:0!important;
  margin:0!important;
  flex:0 0 25px!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,#FBE6A7,#F8C641)!important;
  color:#071E45!important;
  box-shadow:none!important;
}
body.gj5-entry-page.gj5-entry-login
[data-screen-label="Login"]>div:first-child>
div.gj6-login-benefits>div.gj6-login-benefit>span.gj6-login-benefit-copy{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  box-sizing:border-box!important;
  width:auto!important;
  height:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  flex:1 1 auto!important;
  gap:3px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#FFFFFF!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  line-height:1.45!important;
}
body.gj5-entry-page.gj5-entry-login
[data-screen-label="Login"]>div:first-child>
div.gj6-login-benefits>div.gj6-login-benefit>span.gj6-login-benefit-copy>strong,
body.gj5-entry-page.gj5-entry-login
[data-screen-label="Login"]>div:first-child>
div.gj6-login-benefits>div.gj6-login-benefit>span.gj6-login-benefit-copy>small{
  display:block!important;
  height:auto!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  text-align:left!important;
}

/* Protect the new role route against the older login-tabs :first-child rule. */
body.gj5-entry-page.gj5-entry-login
[data-screen-label="Login"]>div:nth-child(2)>div>div.gj6-login-route:first-child{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 12px!important;
  padding:12px 13px!important;
  border-radius:12px!important;
  border:1px solid #DCE7F8!important;
  background:#EDF4FF!important;
}
body.gj5-entry-page.gj5-entry-login.gj5-entry-teacher
[data-screen-label="Login"]>div:nth-child(2)>div>div.gj6-login-route:first-child{
  border-color:#EDDBAE!important;
  background:#FFF6E2!important;
}
