/* Approved earth palette; scoped to the existing signed-out form. */
body:has(#authSection:not(.hidden)){--earth-cream:#FFF8ED;--earth-gold:#D8AA62;--earth-bronze:#E5BC66;--earth-brown:#A76B39;--earth-dark:#542D1C;background:radial-gradient(ellipse at 12% 30%,#f4d9b1 0,transparent 55%),#FFF8ED!important;isolation:isolate}
body:has(#authSection:not(.hidden))::before{content:"";position:absolute;z-index:-1;top:-120px;left:-8%;width:65%;height:260px;background:linear-gradient(145deg,#fffdf8 65%,#E5BC66);border-radius:0 0 80% 45%;pointer-events:none}
body:has(#authSection:not(.hidden))::after{content:"";position:fixed;z-index:-1;bottom:-82px;left:-10%;width:120%;height:145px;background:linear-gradient(170deg,#E5BC66 25%,#D8AA62 48%,#A76B39 49%,#542D1C);border-radius:50% 45% 0 0;pointer-events:none}
body:has(#authSection:not(.hidden)) .leon-login-brand{max-width:1672px;background:transparent;min-height:126px;padding:18px 5%;gap:18px;color:#542D1C}
.leon-login-brand-icon{display:flex;align-items:center;justify-content:center;width:85px;height:85px;font-size:62px}
.leon-login-brand strong{font:900 clamp(32px,3.5vw,57px)/1 Arial,sans-serif;letter-spacing:-.035em}.leon-login-brand small{font-size:clamp(12px,1.5vw,23px);letter-spacing:0}.leon-login-brand-tag{font-size:clamp(12px,1.15vw,18px);color:#542D1C}
body:has(#authSection:not(.hidden)) main{max-width:1672px;padding:20px 4.5% 85px;min-height:calc(100svh - 126px);grid-template-columns:minmax(0,1.17fr) minmax(0,.98fr);gap:3%}
body:has(#authSection:not(.hidden)) #loginHero{height:clamp(440px,74svh,720px)!important;min-height:0!important;border:3px solid #fff8ed!important;border-radius:clamp(38px,8vw,145px)!important;background:#D8AA62!important}
body:has(#authSection:not(.hidden)) #loginHero img{object-fit:cover!important;object-position:center!important;background:transparent!important}
body:has(#authSection:not(.hidden)) #authSection.card{border:0!important;background:rgba(255,250,244,.95)!important;border-radius:48px!important;padding:clamp(28px,3vw,48px)!important;box-shadow:0 18px 50px #A76B3920!important}
body:has(#authSection:not(.hidden)) #formTitle{color:#301b10!important;font-size:clamp(27px,2.9vw,46px)!important;letter-spacing:-.035em}
body:has(#authSection:not(.hidden)) #formTitle:after{width:45%;height:6px;background:#D8AA62}
body:has(#authSection:not(.hidden)) #authSection .muted{font-size:clamp(15px,1.25vw,20px);color:#301b10;margin:24px 0 28px}
.leon-login-input{display:flex;position:relative;align-items:center;margin:15px 0}.leon-login-input>span{position:absolute;left:20px;z-index:1;color:#A76B39;font-size:25px;pointer-events:none}
body:has(#authSection:not(.hidden)) #authForm .leon-login-input input{margin:0!important;min-height:64px;border:2px solid #ecd9c8!important;border-radius:28px!important;padding:16px 53px!important;background:transparent;font-size:17px}
body:has(#authSection:not(.hidden)) #authForm input:focus{outline:3px solid #E5BC6655;border-color:#A76B39!important}
#leonShowPassword{position:absolute;right:10px;width:40px;height:40px;margin:0;padding:0;background:transparent;color:#A76B39;border:0;font-size:20px;box-shadow:none}
body:has(#authSection:not(.hidden)) #authButton{background:linear-gradient(170deg,#b76d21,#A76B39 40%,#733712)!important;border:1px solid #A76B39;font-size:22px;min-height:64px;margin-top:12px}
.leon-login-divider{display:flex;align-items:center;gap:20px;color:#A76B39;margin:20px 0}.leon-login-divider:before,.leon-login-divider:after{content:"";height:1px;flex:1;background:#ecd9c8}
body:has(#authSection:not(.hidden)) #toggleButton{min-height:62px;background:transparent!important;border-color:#A76B39!important;color:#854716!important;font-size:18px}
@media(max-width:850px){body:has(#authSection:not(.hidden)) .leon-login-brand{min-height:88px;padding:12px 20px}.leon-login-brand-icon{width:55px;height:55px;font-size:43px}body:has(#authSection:not(.hidden)) main{padding:12px 18px 65px}body:has(#authSection:not(.hidden)) #loginHero{height:clamp(220px,62vw,380px)!important;border-radius:44px!important}body:has(#authSection:not(.hidden)) #authSection.card{border-radius:30px!important;padding:28px 22px!important}.leon-login-brand small{font-size:12px}}

/* Login Page (1): original LEON artwork and a responsive, live form. */
body:has(#authSection:not(.hidden)) .leon-login-brand{
  box-sizing:border-box;min-height:0;padding:clamp(12px,1.5vw,22px) 5%;
  gap:14px;
}
body:has(#authSection:not(.hidden)) .leon-login-brand-icon{
  display:block;width:clamp(48px,5.6vw,90px);height:auto;object-fit:contain;mix-blend-mode:multiply;
}
body:has(#authSection:not(.hidden)) main{
  box-sizing:border-box;min-height:0;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:clamp(22px,3vw,48px);padding:clamp(16px,2vw,32px) 4.5% 62px;
}
body:has(#authSection:not(.hidden)) #loginHero{
  height:auto!important;aspect-ratio:816/685;border:0!important;
  border-radius:clamp(28px,7vw,130px)!important;box-shadow:none!important;
}
body:has(#authSection:not(.hidden)) #loginHero img{
  height:auto!important;aspect-ratio:816/685;object-fit:fill!important;
}
body:has(#authSection:not(.hidden)) #authSection.card{
  box-shadow:0 15px 42px #6b3a1826!important;
}
body:has(#authSection:not(.hidden)) #authForm .leon-login-input input{
  min-height:clamp(48px,4.2vw,66px);font-size:16px;
}
.leon-login-options{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;flex-wrap:wrap}
.leon-login-options[hidden]{display:none}
.leon-login-options label{display:inline-flex;align-items:center;gap:8px;font-size:14px;text-align:left}
body:has(#authSection:not(.hidden)) #authForm #leonRememberLogin{
  width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:#884515;
}
body:has(#authSection:not(.hidden)) #forgotPasswordButton{
  width:auto;min-height:36px;margin:0;padding:4px 0;border:0;background:transparent!important;box-shadow:none;
}
@media(max-width:850px){
  body:has(#authSection:not(.hidden)) main{padding:14px 16px 58px}
  body:has(#authSection:not(.hidden)) #authSection.card{order:-1}
  body:has(#authSection:not(.hidden)) #loginHero{max-width:520px!important;height:auto!important}
}
@media(max-width:380px){
  body:has(#authSection:not(.hidden)) #authSection.card{padding:22px 16px!important}
  body:has(#authSection:not(.hidden)) #formTitle{font-size:25px!important}
}

.leon-account-home{margin-left:auto;color:#493526;font:650 14px system-ui,sans-serif}
body:has(#authSection:not(.hidden)) #loginHero{aspect-ratio:auto;border-radius:18px!important}
body:has(#authSection:not(.hidden)) #loginHero img{width:100%;height:auto!important;aspect-ratio:1672/941;object-fit:contain!important}
body:has(#authSection:not(.hidden)) #authSection.card{border-radius:18px!important;border:1px solid #c6a675!important;background:#fffaf2!important}
body:has(#authSection:not(.hidden)) #authButton{background:#493526!important}
body:has(#authSection:not(.hidden)) #formTitle{color:#493526}
@media(max-width:850px){body:has(#authSection:not(.hidden)) #loginHero{height:auto!important}}


/* Account layout shared by sign-in and sign-up. */
body:has(#authSection:not(.hidden)) .leon-login-brand {
  max-width: 1120px;
  margin-inline: auto;
  padding: 14px clamp(16px, 4vw, 40px);
}
body:has(#authSection:not(.hidden)) .leon-login-brand-icon { width: 44px; }
body:has(#authSection:not(.hidden)) .leon-login-brand strong { font-size: 30px; }
body:has(#authSection:not(.hidden)) .leon-login-brand small { font-size: 11px; }
body:has(#authSection:not(.hidden)) main {
  max-width: 1120px;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 390px);
  gap: clamp(20px, 5vw, 60px);
  padding: 12px clamp(16px, 4vw, 40px) 30px;
}
body:has(#authSection:not(.hidden)) #loginHero {
  width: 100%;
  margin: 0 !important;
}
body:has(#authSection:not(.hidden)) #loginHero img { display: block; }
body:has(#authSection:not(.hidden)) #authSection.card {
  width: 100%;
  padding: clamp(18px, 3vw, 28px) !important;
}
body:has(#authSection:not(.hidden)) #formTitle {
  margin: 0;
  font-size: clamp(25px, 3vw, 30px) !important;
}
body:has(#authSection:not(.hidden)) #formTitle::after { display: none; }
body:has(#authSection:not(.hidden)) #authSection .muted {
  font-size: 14px;
  margin: 8px 0 16px;
}
body:has(#authSection:not(.hidden)) #authForm .leon-login-input { margin: 9px 0; }
body:has(#authSection:not(.hidden)) #authForm .leon-login-input input {
  min-height: 46px;
  border-radius: 12px !important;
  padding-block: 10px !important;
}
body:has(#authSection:not(.hidden)) .leon-login-options { margin: 6px 0 2px; }
body:has(#authSection:not(.hidden)) #authButton,
body:has(#authSection:not(.hidden)) #toggleButton {
  min-height: 44px;
  font-size: 15px;
  margin: 8px 0 0;
  border-radius: 12px;
}
body:has(#authSection:not(.hidden)) .leon-login-divider { display: none; }
body:has(#authSection:not(.hidden)) #ielts-prices {
  width: auto;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 6px 12px;
  border: 0 !important;
  background: transparent !important;
  color: #634633 !important;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 850px) {
  body:has(#authSection:not(.hidden)) main {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    gap: 18px;
  }
}

/* Account-only final layout: preserve auth behavior and public landing. */
body:has(#authSection:not(.hidden)) main {
  margin-inline: auto;
  width: 100%;
}
body:has(#authSection:not(.hidden)) #authSection.card {
  box-sizing: border-box;
  min-width: 0;
}
body:has(#authSection:not(.hidden)) #formTitle { color: #493526 !important; }
body:has(#authSection:not(.hidden)) #authForm .leon-login-input input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border-radius: 12px !important;
  padding: 10px 48px !important;
}
body:has(#authSection:not(.hidden)) .leon-login-input > span {
  left: 14px;
  font-size: 18px;
}
body:has(#authSection:not(.hidden)) #leonSignupRoleField:not([hidden]) {
  display: grid;
  gap: 6px;
  text-align: left;
  font-size: 14px;
}
body:has(#authSection:not(.hidden)) #leonSignupRole {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #c6a675;
  border-radius: 12px;
  background: #fffaf2;
  color: #493526;
  font: inherit;
  padding: 8px 12px;
}
body:has(#authSection:not(.hidden)) #authSection :focus-visible {
  outline: 2px solid #927254;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  body:has(#authSection:not(.hidden)) .leon-login-brand { gap: 8px; }
  body:has(#authSection:not(.hidden)) .leon-login-brand-tag { display: none; }
  body:has(#authSection:not(.hidden)) #authSection.card { padding: 18px 16px !important; }
}

/* Use the approved public portrait on the existing production account screen. */
body:has(#authSection:not(.hidden)) #loginHero img{content:url('/images/landing/hero.webp');aspect-ratio:1672/941;object-fit:contain!important}
