/* FIX315 - Customer login redesign + safe logo aspect ratios. UI only. */
:root{--hh315-blue:#087cff;--hh315-cyan:#20c7ee;--hh315-navy:#0a3a75;--hh315-text:#173d62;--hh315-muted:#71879b;--hh315-line:#cce9fb;--hh315-bg:#f4fbff;--hh315-card:#fff;--hh315-shadow:0 18px 45px rgba(20,112,180,.14)}
html,body{min-height:100%;background:var(--hh315-bg)!important}
body{padding-bottom:0!important;color:var(--hh315-text)!important}
.hh315-login-page{min-height:100vh;position:relative;overflow-x:hidden;background:linear-gradient(180deg,#f8fdff 0,#eef9ff 45%,#f7fcff 100%)}
.hh315-login-page .fixed-bg{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 12% 15%,rgba(32,199,238,.10),transparent 28%),radial-gradient(circle at 88% 18%,rgba(8,124,255,.09),transparent 30%),linear-gradient(180deg,#fbfeff,#edf8ff)!important}
.hh315-login-shell{position:relative;z-index:1;width:min(760px,100%);margin:0 auto;padding:0 16px 42px;box-sizing:border-box}
.hh315-alert{margin:0;border:0;border-radius:0;background:#eafbf1;color:#18753a}

/* hero */
.hh315-hero{position:relative;margin:0 -16px;padding:22px 20px 18px;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(180deg,#fff 0,#eef9ff 100%);border-bottom:1px solid #d8effd}
.hh315-hero:before,.hh315-hero:after{content:"";position:absolute;width:440px;height:110px;border:3px solid rgba(8,124,255,.10);border-radius:50%;transform:rotate(-8deg)}
.hh315-hero:before{top:46px;left:-210px}.hh315-hero:after{right:-210px;bottom:20px;transform:rotate(10deg)}
.hh315-logo-wrap{position:relative;z-index:2;width:min(430px,76vw);display:flex;align-items:center;justify-content:center}
.hh315-login-logo{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:150px!important;object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important}
.hh315-tagline{position:relative;z-index:2;margin:8px 0 0;color:#245f91;font-weight:700;font-size:16px;text-align:center;letter-spacing:.1px}
.hh315-ball{position:absolute;display:flex;align-items:center;justify-content:center;width:76px;height:76px;border-radius:50%;font-weight:900;font-size:28px;color:#0b56a7;background:radial-gradient(circle at 34% 28%,#fff 0 22%,#d7f3ff 23% 46%,#0d8df4 72%,#0564c7 100%);box-shadow:0 11px 26px rgba(8,124,255,.22);opacity:.28;border:4px solid rgba(255,255,255,.95)}
.hh315-ball-left{left:-30px;top:50px}.hh315-ball-right{right:-28px;bottom:18px}

/* login card */
.hh315-login-card{margin-top:20px;background:rgba(255,255,255,.97);border:1px solid var(--hh315-line);border-radius:28px;padding:26px;box-shadow:var(--hh315-shadow);backdrop-filter:blur(10px)}
.hh315-login-card .form-group{margin:0!important}.hh315-login-card .help-block{color:#e34848!important;margin:7px 0 0 6px!important;font-size:12px}
.hh315-field{position:relative;margin-bottom:15px}.hh315-field-icon{position:absolute;left:18px;top:50%;transform:translateY(-50%);z-index:4;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eff8ff;color:#567ba3;font-size:17px}
.hh315-input,.hh315-login-page #login-form input.form-control{height:64px!important;border-radius:20px!important;border:1.5px solid #c6e2f5!important;background:#fff!important;color:#16395a!important;-webkit-text-fill-color:#16395a!important;font-size:18px!important;padding:0 58px 0 70px!important;box-shadow:none!important;outline:none!important}
.hh315-input::placeholder,.hh315-login-page #login-form input::placeholder{color:#8b9cad!important;-webkit-text-fill-color:#8b9cad!important;opacity:1!important}.hh315-input:focus{border-color:#49baff!important;box-shadow:0 0 0 4px rgba(8,124,255,.07)!important}
.hh315-password-eye{position:absolute!important;right:17px!important;top:50%!important;transform:translateY(-50%)!important;border:0!important;background:transparent!important;color:#58799c!important;font-size:22px!important;z-index:5!important;padding:8px!important;line-height:1!important}
.hh315-form-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 2px 18px}.hh315-remember{font-size:14px;color:#4a6075}.hh315-remember .form-group,.hh315-remember .checkbox{margin:0!important}.hh315-remember label{display:flex;align-items:center;gap:8px;margin:0!important}.hh315-remember input[type="checkbox"]{width:20px;height:20px;accent-color:var(--hh315-blue)}.hh315-forgot{font-size:14px;color:var(--hh315-blue)!important;text-decoration:underline!important}.hh315-forgot-disabled{opacity:.45;text-decoration:none!important}
.hh315-language-row{position:relative;height:60px;border-radius:20px;border:1px solid #d7e9f6;background:#fff;display:flex;align-items:center;padding:0 20px;gap:12px;margin-bottom:16px;color:#18384f;font-weight:700;font-size:17px;overflow:hidden}.hh315-language-row .flag-icon{font-size:26px;border-radius:4px}.hh315-language-row>i{margin-left:auto;color:#263f5b}.hh315-language-row select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.hh315-login-btn{width:100%!important;min-height:64px!important;border-radius:22px!important;border:0!important;background:linear-gradient(135deg,#22caee 0,#0780fb 64%,#0967ef 100%)!important;color:#fff!important;font-size:22px!important;font-weight:800!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;box-shadow:0 12px 25px rgba(8,124,255,.25)!important;text-shadow:none!important}.hh315-login-btn:hover,.hh315-login-btn:focus{color:#fff!important;filter:brightness(1.02)}
.hh315-register-divider{display:flex;align-items:center;gap:12px;margin:19px 0 14px;color:#9aabb8;font-size:13px}.hh315-register-divider:before,.hh315-register-divider:after{content:"";height:1px;background:#d9e8f2;flex:1}.hh315-register-btn{min-height:58px;border:1.5px solid var(--hh315-blue);border-radius:20px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--hh315-blue)!important;background:#fff;text-decoration:none!important;font-weight:800;font-size:18px}.hh315-register-btn i{font-size:19px}

/* benefits */
.hh315-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.hh315-benefit{min-height:122px;background:linear-gradient(145deg,#fff,#f0f9ff);border:1px solid var(--hh315-line);border-radius:22px;padding:17px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 10px 25px rgba(20,112,180,.09)}.hh315-benefit i{font-size:28px;color:var(--hh315-blue);margin-bottom:9px}.hh315-benefit strong{font-size:15px;color:#124b82}.hh315-benefit small{font-size:12px;color:#6f8799;margin-top:3px}

/* promo */
.hh315-promo{margin-top:18px}.hh315-promo-slider{position:relative;overflow:hidden;border-radius:24px;border:1px solid #bfe2fa;background:#eaf7ff;box-shadow:0 12px 30px rgba(21,109,173,.12);aspect-ratio:16/6.1}.hh315-promo-slide{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}.hh315-promo-slide.active{opacity:1}.hh315-promo-slide img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.hh315-promo-dots{position:absolute;left:0;right:0;bottom:9px;display:flex;justify-content:center;gap:6px;z-index:3}.hh315-promo-dots button{border:0;width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.72);padding:0}.hh315-promo-dots button.active{width:24px;border-radius:8px;background:#fff}.hh315-promo-empty{min-height:150px;border-radius:24px;padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:16px;overflow:hidden;position:relative;background:linear-gradient(135deg,#083f9d,#078cff 62%,#28c9ee);box-shadow:0 12px 30px rgba(8,124,255,.20);color:#fff}.hh315-promo-empty:before{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-40px;top:-75px;background:rgba(255,255,255,.12)}.hh315-promo-copy{position:relative;z-index:2;display:flex;flex-direction:column;gap:5px}.hh315-promo-copy strong{font-size:23px}.hh315-promo-copy span{font-size:13px;opacity:.92;max-width:390px}.hh315-promo-empty>i{position:relative;z-index:2;font-size:58px;color:#fff;filter:drop-shadow(0 6px 10px rgba(0,0,0,.10))}

/* quick links */
.hh315-quick-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.hh315-quick-links a{min-height:125px;border:1px solid var(--hh315-line);background:#fff;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none!important;color:#15477a!important;padding:15px 8px;box-shadow:0 10px 24px rgba(21,109,173,.08)}.hh315-quick-links i{font-size:30px;color:var(--hh315-blue);margin-bottom:9px}.hh315-quick-links strong{font-size:15px}.hh315-quick-links small{color:#7a8fa3;font-size:12px;margin-top:2px;line-height:1.25}.hh315-login-footer{text-align:center;color:#9bb0c0;font-size:12px;padding:26px 0 2px}

/* remove old lottery-result/login chrome from the redesigned login */
.hh315-login-page .subbglogin,.hh315-login-page #contentbox,.hh315-login-page .button-select-category,.hh315-login-page .page-footer{display:none!important}

/* safe logo rules used across customer pages */
.theme-logo-img,.theme-header-logo,#logofull,.indexlogo img,.logoindex img,.memberlogo img,.logomember img{object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important}
.theme-logo-img,.theme-header-logo,#logofull{width:auto!important;height:auto!important;max-width:100%!important;max-height:52px!important}
.hh-register-topbar .logoindex{width:min(260px,72vw)!important;height:auto!important}.hh-register-topbar .logoindex img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:92px!important;margin:auto!important;top:0!important}

@media(max-width:650px){
  .hh315-login-shell{padding:0 14px 32px}.hh315-hero{margin:0 -14px;min-height:205px;padding:20px 16px 16px}.hh315-logo-wrap{width:min(390px,78vw)}.hh315-login-logo{max-height:135px!important}.hh315-tagline{font-size:15px}.hh315-ball{width:66px;height:66px;font-size:24px}.hh315-login-card{margin-top:16px;border-radius:25px;padding:20px 18px}.hh315-input,.hh315-login-page #login-form input.form-control{height:60px!important;border-radius:18px!important;font-size:17px!important;padding-left:62px!important}.hh315-field-icon{left:14px;width:36px;height:36px}.hh315-language-row{height:58px;border-radius:18px}.hh315-login-btn{min-height:60px!important;border-radius:19px!important;font-size:20px!important}.hh315-register-btn{min-height:55px;border-radius:18px;font-size:17px}.hh315-benefits,.hh315-quick-links{gap:8px}.hh315-benefit{min-height:108px;border-radius:18px}.hh315-benefit i{font-size:24px}.hh315-benefit strong{font-size:13px}.hh315-benefit small{font-size:10.5px}.hh315-promo-slider{border-radius:20px;aspect-ratio:16/6.8}.hh315-promo-empty{min-height:135px;border-radius:20px;padding:18px}.hh315-promo-copy strong{font-size:20px}.hh315-promo-empty>i{font-size:45px}.hh315-quick-links a{min-height:112px;border-radius:18px;padding:12px 5px}.hh315-quick-links i{font-size:26px}.hh315-quick-links strong{font-size:13px}.hh315-quick-links small{font-size:10.5px}.theme-logo-img,.theme-header-logo,#logofull{max-height:44px!important;max-width:145px!important}
}
@media(max-width:390px){.hh315-login-shell{padding-left:10px;padding-right:10px}.hh315-hero{margin-left:-10px;margin-right:-10px}.hh315-login-card{padding:18px 14px}.hh315-form-meta{font-size:12px}.hh315-remember,.hh315-forgot{font-size:12px}.hh315-benefits,.hh315-quick-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.hh315-benefit,.hh315-quick-links a{padding-left:4px;padding-right:4px}.hh315-benefit strong,.hh315-quick-links strong{font-size:12px}.hh315-benefit small,.hh315-quick-links small{font-size:9.5px}.hh315-promo-copy span{font-size:11px}}
