/* ============================================================
 * LioGames Auth Pages (Login / Register / Lost password)
 * - Lightweight, responsive, no external libs.
 * ============================================================ */

body.liog-auth-active{
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* Dark gradient background like reference */
  background: linear-gradient(135deg, #061538 0%, #0b1f4e 55%, #091c42 100%);
}

/* Make sizing predictable (prevents overflow/zoom weirdness on some setups) */
body.liog-auth-active,
body.liog-auth-active *,
body.liog-auth-active *::before,
body.liog-auth-active *::after{
  box-sizing: border-box;
}

/* Hide Storefront header/footer for full-page auth layout */
body.liog-auth-active #masthead,
body.liog-auth-active #colophon,
body.liog-auth-active .site-footer,
body.liog-auth-active .storefront-breadcrumb{
  display: none !important;
}

body.liog-auth-active .site-content,
body.liog-auth-active .content-area,
body.liog-auth-active .site-main{
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Make Storefront containers full width on auth screens (fix zoom/overflow) */
body.liog-auth-active #page,
body.liog-auth-active .site,
body.liog-auth-active .col-full,
body.liog-auth-active #content{
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Prevent any Storefront/woocommerce layout spacing from pushing content down */
body.liog-auth-active #primary,
body.liog-auth-active #main,
body.liog-auth-active .site-main,
body.liog-auth-active .site-content,
body.liog-auth-active .content-area{
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
}
body.liog-auth-active{ overflow-x: hidden; }

/* Remove default post/page spacing that can create top/bottom gaps */
body.liog-auth-active .hentry,
body.liog-auth-active .entry-content,
body.liog-auth-active .entry-summary{
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove WooCommerce default spacing */
body.liog-auth-active .woocommerce{
  margin: 0 !important;
  padding: 0 !important;
}

.liog-auth-page{
  /* Always cover the viewport so login form / slider never drops into the footer */
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;

  display: flex;
  overflow: hidden;
  background: transparent;
  z-index: 9999;
}

/* Keep desktop selector for compatibility (no-op now) */
@media (min-width: 981px){
  .liog-auth-page{ height: 100svh; }
}

.liog-auth__left{
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: #f3f5f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 40px 20px;
  position: relative;
  overflow: hidden;
}

.liog-auth__hero{
  width: 100%;
  max-width: 860px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.liog-auth__title{
  font-size: 46px;
  line-height: 1.05;
  text-align: center;
  font-weight: 800;
  margin: 0 0 26px;
  color: #0b1a3c;
}

.liog-auth__hero-image{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.liog-auth__hero-image img{
  width: 100%;
  height: auto;
  /* Keep enough room for the bottom slider on all laptop heights */
  max-height: min(46vh, calc(100svh - 360px));
  object-fit: contain;
  display: block;
}

/* Login page in reference design has NO big hero image */
.liog-auth--login .liog-auth__hero-image{
  display: none !important;
}

/* Slider */
.liog-auth-slider{
  width: 100%;
  padding: 18px 20px 18px;
  margin-top: 0;
  background: transparent;
  border-top: 0;
}

.liog-auth-slider__viewport{
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.liog-auth-slider__track{
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: liog-auth-scroll 32s linear infinite;
}

.liog-auth-slide{
  min-width: 92px;
  max-width: 92px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.liog-auth-slide img{
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eef2f7;
}

.liog-auth-slide span{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0b1a3c;
  text-align: center;
  line-height: 1.1;
}

@keyframes liog-auth-scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* Right side form */
.liog-auth__right{
  flex: 0 0 clamp(420px, 36vw, 640px);
  max-width: clamp(420px, 36vw, 640px);
  min-width: 0;
  min-height: 0;
  background: #0b1a3c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 44px;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  z-index: 2;
}

.liog-auth__formwrap{
  width: 100%;
  max-width: 430px;
}

.liog-auth__formtitle{
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 24px;
  color: #fff !important;
}

.liog-auth-notices{
  margin: 0 0 16px;
}

.liog-auth-form .woocommerce-form-row,
.liog-auth-form p{
  margin: 0 0 16px;
}

.liog-auth-form{
  width: 100% !important;
  max-width: none !important;
}

/* Remove Storefront/Woo default form box styling (white/black border boxes) */
body.liog-auth-active .liog-auth-form,
body.liog-auth-active .liog-auth-form.woocommerce-form,
body.liog-auth-active .woocommerce form.login.liog-auth-form,
body.liog-auth-active .woocommerce form.register.liog-auth-form,
.liog-auth-form,
.liog-auth-form.woocommerce-form,
.woocommerce form.login.liog-auth-form,
.woocommerce form.register.liog-auth-form{
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.liog-auth-form label{
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
}

.liog-auth-form input[type="text"],
.liog-auth-form input[type="email"],
.liog-auth-form input[type="password"],
.liog-auth-form input[type="tel"]{
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(0,0,0,0.22) !important;
  padding: 0 14px;
  color: #fff !important;
  outline: none;
  box-shadow: none !important;
}

/* Placeholder color: keep readable on dark inputs */
.liog-auth-form input::placeholder{
  color: rgba(255,255,255,0.78);
  opacity: 1;
}

/* Some Storefront/Woo rules can override placeholder on the My Account forms.
   Force placeholders to stay visible on login/register screens. */
body.liog-auth-active .woocommerce form.login input::placeholder,
body.liog-auth-active .woocommerce form.register input::placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-login input::placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-register input::placeholder{
  color: rgba(255,255,255,0.78) !important;
  opacity: 1 !important;
}

body.liog-auth-active .woocommerce form.login input::-webkit-input-placeholder,
body.liog-auth-active .woocommerce form.register input::-webkit-input-placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-login input::-webkit-input-placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-register input::-webkit-input-placeholder{
  color: rgba(255,255,255,0.78) !important;
}

body.liog-auth-active .woocommerce form.login input::-moz-placeholder,
body.liog-auth-active .woocommerce form.register input::-moz-placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-login input::-moz-placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-register input::-moz-placeholder{
  color: rgba(255,255,255,0.78) !important;
  opacity: 1 !important;
}

body.liog-auth-active .woocommerce form.login input:-ms-input-placeholder,
body.liog-auth-active .woocommerce form.register input:-ms-input-placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-login input:-ms-input-placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-register input:-ms-input-placeholder{
  color: rgba(255,255,255,0.78) !important;
}

.liog-auth-form .liog-auth-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.liog-auth-form .liog-auth-terms{
  font-size: 12px;
  color: rgba(255,255,255,0.92);
}

.liog-auth-form .liog-auth-terms a{
  color: #fff;
  text-decoration: underline;
}

.liog-auth-form .liog-auth-terms input{
  margin-right: 8px;
}

.liog-auth-form .liog-auth-link{
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  text-decoration: underline;
  white-space: nowrap;
}

.liog-auth-form .button,
.liog-auth-form button[type="submit"]{
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #caa85b;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.liog-auth-form .button:hover,
.liog-auth-form button[type="submit"]:hover{
  opacity: 0.95;
}

.liog-auth-bottom-link{
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

.liog-auth-bottom-link a{
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
}

/* Register password rules */
.liog-auth-passrules{
  margin: -8px 0 14px;
  padding: 0;
  color: #ff5252;
  font-size: 12px;
}

/* ============================================================
 * Lost Password Page
 * ============================================================ */
.liog-lost-page{
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
  background:
    radial-gradient( circle at 20% 10%, rgba(0, 180, 255, 0.14), transparent 40% ),
    radial-gradient( circle at 90% 60%, rgba(120, 80, 255, 0.16), transparent 45% ),
    #0b1a3c;
}

.liog-lost-card{
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.30);
  padding: 28px 28px 22px;
}

.liog-lost-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.liog-lost-title{
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #0b1a3c;
  margin: 8px 0 20px;
}

.liog-lost-form label{
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #2c3e5e;
  margin: 0 0 8px;
}

.liog-lost-form{
  width: 100% !important;
  max-width: none !important;
}

.liog-lost-form p{
  margin: 0 0 16px;
}

.liog-lost-form input[type="text"],
.liog-lost-form input[type="email"]{
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #e4ebf5;
  background: #f6f8fc;
  padding: 0 14px;
  outline: none;
}

/* Remove any theme default box styles on lost/reset forms */
body.liog-auth-active .woocommerce form.lost_reset_password,
body.liog-auth-active .woocommerce form.woocommerce-ResetPassword,
body.liog-auth-active .liog-lost-form,
.woocommerce form.lost_reset_password,
.woocommerce form.woocommerce-ResetPassword,
.liog-lost-form{
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.liog-lost-actions{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.liog-lost-actions a{
  font-size: 12px;
  font-weight: 800;
  color: #0b1a3c;
  text-decoration: underline;
}

.liog-lost-form button[type="submit"]{
  margin-top: 16px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #0b1a3c;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* ============================================================
 * Responsive
 * ============================================================ */
@media (max-width: 980px){
  body.liog-auth-active{
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }
  .liog-auth-page{
    position: relative;
    inset: auto;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .liog-auth__right{
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
    padding: 38px 22px;
    overflow: visible;
    align-items: flex-start;
  }
  .liog-auth__left{
    padding: 44px 18px 18px;
  }
  .liog-auth__title{
    font-size: 34px;
  }
  .liog-auth__hero-image img{
    max-height: 46vh;
  }
}



/* Force Auth Styles (override Storefront/Woo defaults) */
body.liog-auth-active .liog-auth__formtitle{ color: #fff !important; }
body.liog-auth-active .liog-auth__helper,
body.liog-auth-active .liog-auth__helper a{ color: rgba(255,255,255,0.8) !important; }

body.liog-auth-active .liog-auth-form,
body.liog-auth-active .liog-lost-form{
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

body.liog-auth-active .liog-auth-form input[type="text"],
body.liog-auth-active .liog-auth-form input[type="email"],
body.liog-auth-active .liog-auth-form input[type="password"]{
  background: rgba(0,0,0,0.22) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Ensure WooCommerce default login/register forms match our dark input styles
   (in case liog-auth-form class is not present on some pages). */
body.liog-auth-active .woocommerce form.woocommerce-form-login input[type="text"],
body.liog-auth-active .woocommerce form.woocommerce-form-login input[type="email"],
body.liog-auth-active .woocommerce form.woocommerce-form-login input[type="password"],
body.liog-auth-active .woocommerce form.login input[type="text"],
body.liog-auth-active .woocommerce form.login input[type="email"],
body.liog-auth-active .woocommerce form.login input[type="password"],
body.liog-auth-active .woocommerce form.woocommerce-form-register input[type="text"],
body.liog-auth-active .woocommerce form.woocommerce-form-register input[type="email"],
body.liog-auth-active .woocommerce form.woocommerce-form-register input[type="password"],
body.liog-auth-active .woocommerce form.register input[type="text"],
body.liog-auth-active .woocommerce form.register input[type="email"],
body.liog-auth-active .woocommerce form.register input[type="password"]{
  background: rgba(0,0,0,0.22) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.liog-auth-active .liog-auth-form .password-input{ width: 100%; }
body.liog-auth-active .liog-auth-form .show-password-input{
  background: rgba(202,168,91,0.22) !important;
  border: 1px solid rgba(202,168,91,0.35) !important;
  color: #caa85b !important;
}

body.liog-auth-active .liog-auth-form button,
body.liog-auth-active .liog-auth-form input[type="submit"]{
  background: #caa85b !important;
  border: 0 !important;
  color: #0b1a3c !important;
  box-shadow: none !important;
}

body.liog-auth-active .liog-lost-form input[type="text"],
body.liog-auth-active .liog-lost-form input[type="email"]{
  background: #f2f5fb !important;
  border: 1px solid #dbe6f7 !important;
  color: #0b1a3c !important;
  box-shadow: none !important;
}

body.liog-auth-active .liog-lost-form button,
body.liog-auth-active .liog-lost-form input[type="submit"]{
  background: #0b1a3c !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.liog-auth-active .liog-lost-form p{ margin: 0 0 14px !important; }


/* OTP helper */
.liog-auth-otp-hint{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
  margin: -6px 0 12px;
}
.liog-auth-otp-hint a{ color: #fff; text-decoration: underline; }

@media (max-height: 740px){
  .liog-auth__title{ font-size: 38px; }
  .liog-auth__right{ padding: 34px 34px; }
  .liog-auth__formtitle{ font-size: 34px; }
  .liog-auth__hero-image img{ max-height: 44vh; }
  .liog-auth__left{ padding: 28px 34px 14px; }
  .liog-auth__hero{ margin: 18px 0 12px; }
  .liog-auth-slider{ height: 96px; }
}

/* v6: Small laptop responsive fix for register page only.
   Keeps existing colors/design; only prevents the top fields from being clipped
   when viewport height is short (for example 1366x768 / browser zoom). */
@media (min-width: 981px) and (max-height: 860px){
  .liog-auth--register .liog-auth__right{
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    overflow-y: auto !important;
  }
  .liog-auth--register .liog-auth__formtitle{
    font-size: 34px;
    margin-bottom: 14px;
  }
  .liog-auth--register .liog-auth-form .woocommerce-form-row,
  .liog-auth--register .liog-auth-form p{
    margin-bottom: 11px;
  }
  .liog-auth--register .liog-auth-form label{
    margin-bottom: 5px;
  }
  .liog-auth--register .liog-auth-form input[type="text"],
  .liog-auth--register .liog-auth-form input[type="email"],
  .liog-auth--register .liog-auth-form input[type="password"],
  .liog-auth--register .liog-auth-form input[type="tel"]{
    height: 42px;
  }
  .liog-auth--register .liog-auth-form .button,
  .liog-auth--register .liog-auth-form button[type="submit"]{
    height: 46px;
  }
  .liog-auth--register .liog-auth-passrules{
    margin: -3px 0 9px;
    line-height: 1.3;
  }
  .liog-auth--register .liog-auth-bottom-link{
    margin-top: 10px;
  }
  .liog-auth--register .liog-auth__left{
    padding-top: 26px;
    padding-bottom: 10px;
  }
  .liog-auth--register .liog-auth__title{
    font-size: 38px;
    margin-bottom: 18px;
  }
  .liog-auth--register .liog-auth__hero-image img{
    max-height: min(42vh, calc(100svh - 310px));
  }
  .liog-auth--register .liog-auth-slider{
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (min-width: 981px) and (max-height: 720px){
  .liog-auth--register .liog-auth__right{
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  .liog-auth--register .liog-auth__formtitle{
    font-size: 30px;
    margin-bottom: 10px;
  }
  .liog-auth--register .liog-auth-form .woocommerce-form-row,
  .liog-auth--register .liog-auth-form p{
    margin-bottom: 8px;
  }
  .liog-auth--register .liog-auth-form input[type="text"],
  .liog-auth--register .liog-auth-form input[type="email"],
  .liog-auth--register .liog-auth-form input[type="password"],
  .liog-auth--register .liog-auth-form input[type="tel"]{
    height: 38px;
  }
  .liog-auth--register .liog-auth__title{
    font-size: 34px;
  }
  .liog-auth--register .liog-auth-slider{
    padding-top: 6px;
    padding-bottom: 6px;
  }
}


/* v7: Placeholder + short-height auth clipping fix. Keeps the visual design unchanged. */
body.liog-auth-active .woocommerce form.login input::placeholder,
body.liog-auth-active .woocommerce form.woocommerce-form-login input::placeholder,
body.liog-auth-active .liog-auth-form input::placeholder{
  color: rgba(255,255,255,.62)!important;
  opacity: 1!important;
}
@media (min-width: 981px) and (max-height: 860px){
  .liog-auth__right{
    min-height: 100svh;
    max-height: 100svh;
    overflow-y: auto!important;
    align-items: flex-start!important;
    justify-content: flex-start!important;
    padding-top: 28px!important;
    padding-bottom: 28px!important;
  }
  .liog-auth__formwrap{
    width: 100%;
    margin-top: 0!important;
    padding-bottom: 18px;
  }
}
@media (min-width: 981px) and (max-height: 720px){
  .liog-auth__right{
    padding-top: 16px!important;
    padding-bottom: 16px!important;
  }
}
