/* AILA authentication page */
body.aila-auth-page{
  --aila-auth-ink:#14161c;
  --aila-auth-muted:#777c86;
  --aila-auth-line:#e5e6e2;
  --aila-auth-soft:#f5f5f2;
  --aila-auth-accent:var(--aila-accent,#baff3d);
  min-height:100vh;
  background:#f7f7f4!important;
}

body.aila-auth-page .aila-header{
  background:#fff!important;
  border-bottom:1px solid #e6e7e3!important;
}

body.aila-auth-page .aila-header__inner{
  grid-template-columns:auto 1fr!important;
}

body.aila-auth-page .aila-main{
  flex:1;
  padding:0!important;
  background:#f7f7f4!important;
}

body.aila-auth-page .aila-container{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

body.aila-auth-page .content-area{
  width:100%!important;
  margin:0!important;
  padding:0!important;
}

body.aila-auth-page .aila-auth-hp-page{
  width:100%;
  min-height:calc(100vh - 80px - 68px);
  margin:0;
  padding:28px;
}

.aila-auth-shell{
  width:min(1180px,100%);
  min-height:650px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);
  overflow:hidden;
  border:1px solid #e1e2de;
  border-radius:30px;
  background:#fff;
  box-shadow:0 28px 80px rgba(19,22,28,.09);
}

.aila-auth-visual{
  position:relative;
  min-height:650px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:38px 42px;
  color:#fff;
  background:#14161c;
}

.aila-auth-visual__glow{
  position:absolute;
  width:560px;
  height:560px;
  right:-180px;
  top:-180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(186,255,61,.36) 0,rgba(186,255,61,.13) 38%,rgba(186,255,61,0) 72%);
  filter:blur(2px);
}

.aila-auth-visual__brand{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.17em;
}

.aila-auth-visual__mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#172000;
  background:var(--aila-auth-accent);
  font-size:19px;
  letter-spacing:0;
}

.aila-auth-visual__copy{
  position:relative;
  z-index:2;
  max-width:520px;
  margin-top:82px;
}

.aila-auth-visual__eyebrow{
  margin:0 0 18px;
  color:var(--aila-auth-accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}

.aila-auth-visual h1{
  margin:0;
  color:#fff;
  font-size:clamp(42px,4.1vw,64px);
  line-height:.96;
  letter-spacing:-.055em;
}

.aila-auth-visual__copy>p:last-child{
  max-width:450px;
  margin:26px 0 0;
  color:#aeb2bb;
  font-size:15px;
  line-height:1.65;
}

.aila-auth-devices{
  position:relative;
  z-index:1;
  flex:1;
  min-height:230px;
  margin-top:16px;
  margin-bottom:32px;
}

.aila-auth-device{
  position:absolute;
  display:block;
}

.aila-auth-device--phone{
  width:114px;
  height:228px;
  right:74px;
  bottom:-34px;
  overflow:hidden;
  border:5px solid #2b2e35;
  border-radius:31px;
  background:linear-gradient(150deg,#e9ebef 0,#9ca0a9 42%,#22252b 100%);
  box-shadow:0 28px 60px rgba(0,0,0,.45);
  transform:rotate(11deg);
}

.aila-auth-device__island{
  position:absolute;
  top:9px;
  left:50%;
  width:42px;
  height:12px;
  border-radius:999px;
  background:#191b20;
  transform:translateX(-50%);
}

.aila-auth-device__shine{
  position:absolute;
  width:150px;
  height:260px;
  left:-75px;
  top:-30px;
  background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.42) 50%,transparent 70%);
  transform:rotate(16deg);
}

.aila-auth-device--laptop{
  width:250px;
  height:155px;
  right:170px;
  bottom:-12px;
  transform:rotate(-7deg);
}

.aila-auth-device__screen{
  position:absolute;
  inset:0 15px 20px;
  border:7px solid #b9bdc5;
  border-radius:11px 11px 5px 5px;
  background:radial-gradient(circle at 72% 30%,rgba(186,255,61,.28),transparent 35%),#111318;
  box-shadow:0 24px 50px rgba(0,0,0,.36);
}

.aila-auth-device__base{
  position:absolute;
  left:0;
  right:0;
  bottom:11px;
  height:12px;
  border-radius:2px 2px 22px 22px;
  background:#aeb2ba;
}

.aila-auth-device--watch{
  width:84px;
  height:98px;
  left:18px;
  bottom:18px;
  border:9px solid #c8c8c1;
  border-radius:29px;
  background:#0f1116;
  box-shadow:0 18px 42px rgba(0,0,0,.4);
  transform:rotate(-12deg);
}

.aila-auth-device--watch::before,
.aila-auth-device--watch::after{
  content:"";
  position:absolute;
  left:17px;
  width:32px;
  height:54px;
  z-index:-1;
  background:#83857f;
}
.aila-auth-device--watch::before{bottom:78px;border-radius:15px 15px 5px 5px}
.aila-auth-device--watch::after{top:78px;border-radius:5px 5px 15px 15px}

.aila-auth-visual__foot{
  position:relative;
  z-index:2;
  margin:8px 0 0;
  transform:translateY(8px);
  color:#858a94;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.aila-auth-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:52px 64px;
  background:#fff;
}

.aila-auth-card__header{
  margin-bottom:28px;
}

.aila-auth-card__title{
  display:flex;
  align-items:center;
  gap:12px;
}

.aila-auth-card__mobile-mark{
  display:none;
}

.aila-auth-card h2{
  margin:0;
  color:var(--aila-auth-ink);
  font-size:32px;
  line-height:1.12;
  letter-spacing:-.04em;
}

.aila-auth-card__title p{
  margin:8px 0 0;
  color:var(--aila-auth-muted);
  font-size:14px;
}

.aila-auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin-top:30px;
  padding:4px;
  border-radius:15px;
  background:#f0f1ed;
}

.aila-auth-tab{
  min-height:44px;
  border:0;
  border-radius:12px;
  color:#676c75;
  background:transparent;
  font-size:14px;
  font-weight:800;
  transition:color .2s ease,background .2s ease,box-shadow .2s ease;
}

.aila-auth-tab.is-active{
  color:#15171c;
  background:#fff;
  box-shadow:0 5px 16px rgba(20,22,27,.08);
}

.aila-auth-form{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

.aila-auth-form--register{
  display:none;
}

.aila-auth-card[data-auth-mode="register"] .aila-auth-form--login{
  display:none;
}

.aila-auth-card[data-auth-mode="register"] .aila-auth-form--register{
  display:block;
}

.aila-auth-card .hp-form__fields{
  display:grid;
  gap:17px;
}

.aila-auth-card .hp-form__field{
  margin:0!important;
}

.aila-auth-card .hp-field__label{
  display:block;
  margin:0 0 8px!important;
  color:#292c33;
  font-size:13px;
  font-weight:800;
}

.aila-auth-card .hp-field input[type="text"],
.aila-auth-card .hp-field input[type="email"],
.aila-auth-card .hp-field input[type="password"]{
  width:100%;
  height:52px;
  margin:0;
  padding:0 48px 0 16px;
  border:1px solid #dcded8;
  border-radius:14px;
  color:#15171c;
  background:#fafaf8;
  box-shadow:none;
  font-size:15px;
  outline:none;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.aila-auth-card .hp-field input:focus{
  border-color:#9bcf3a;
  background:#fff;
  box-shadow:0 0 0 4px rgba(186,255,61,.18);
}

.aila-auth-card .hp-form__field--password{
  position:relative;
}

.aila-auth-card .hp-form__field--password .hp-field{
  position:relative!important;
}

.aila-auth-card .hp-form__field--password input{
  padding-right:52px!important;
}

.aila-auth-card .hp-form__field--password .hp-field__icon{
  position:absolute!important;
  top:50%!important;
  right:10px!important;
  bottom:auto!important;
  width:36px!important;
  height:36px!important;
  display:grid!important;
  place-items:center!important;
  margin:0!important;
  border:0!important;
  border-radius:10px!important;
  color:#757a84!important;
  background:transparent!important;
  text-decoration:none!important;
  line-height:1!important;
  transform:translateY(-50%)!important;
}

.aila-auth-card .hp-form__field--password .hp-field__icon:hover,
.aila-auth-card .hp-form__field--password .hp-field__icon:focus{
  color:#17191f!important;
  background:#eceee9!important;
}

.aila-auth-card .hp-form__field--password .hp-field__icon i{
  margin:0!important;
  font-size:16px!important;
}

.aila-auth-card .hp-form__button{
  width:100%;
  min-height:52px;
  margin-top:22px;
  border:1px solid #8fd414!important;
  border-radius:14px!important;
  color:#172000!important;
  background:var(--aila-auth-accent)!important;
  box-shadow:none!important;
  font-size:15px!important;
  font-weight:900!important;
  transition:background .2s ease,transform .2s ease!important;
}

.aila-auth-card .hp-form__button:hover,
.aila-auth-card .hp-form__button:focus{
  background:#aef12e!important;
  transform:translateY(-1px);
}

.aila-auth-card .hp-form__actions{
  display:flex;
  justify-content:center;
  margin:16px 0 0!important;
  text-align:center;
}

.aila-auth-card .hp-form__action{
  margin:0!important;
  color:#777c86;
  font-size:13px;
}

.aila-auth-card .hp-form__action a{
  color:#20232a;
  font-weight:800;
  text-decoration:none;
}

.aila-auth-card .hp-form__action--user-register,
.aila-auth-card .hp-form__action--user-login{
  display:none!important;
}

.aila-auth-card .hp-form__messages{
  margin-bottom:16px;
}

.aila-auth-card .hp-form__message{
  padding:12px 14px;
  border-radius:12px;
  font-size:13px;
}

.aila-auth-legal{
  margin:26px 0 0;
  color:#969aa2;
  font-size:11px;
  line-height:1.55;
  text-align:center;
}

body.aila-auth-page .aila-footer{
  min-height:68px;
}

@media(max-width:980px){
  body.aila-auth-page .aila-auth-hp-page{
    padding:20px;
  }

  .aila-auth-shell{
    grid-template-columns:minmax(0,.9fr) minmax(400px,1.1fr);
  }

  .aila-auth-visual{
    padding:32px;
  }

  .aila-auth-visual__copy{
    margin-top:64px;
  }

  .aila-auth-visual h1{
    font-size:46px;
  }

  .aila-auth-card{
    padding:44px 42px;
  }
}

@media(max-width:760px){
  body.aila-auth-page .aila-auth-hp-page{
    min-height:calc(100vh - 60px);
    padding:12px;
  }

  .aila-auth-shell{
    min-height:0;
    grid-template-columns:1fr;
    border-radius:24px;
  }

  .aila-auth-visual{
    display:none;
  }

  .aila-auth-card{
    min-height:calc(100vh - 92px);
    justify-content:flex-start;
    padding:34px 24px 28px;
  }

  .aila-auth-card__mobile-mark{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    flex:0 0 42px;
    border-radius:13px;
    color:#172000;
    background:var(--aila-auth-accent);
    font-size:19px;
    font-weight:900;
  }

  .aila-auth-card h2{
    font-size:27px;
  }
}

@media(max-width:420px){
  body.aila-auth-page .aila-auth-hp-page{
    padding:0;
  }

  .aila-auth-shell{
    border:0;
    border-radius:0;
    box-shadow:none;
  }

  .aila-auth-card{
    min-height:calc(100vh - 58px);
    padding:28px 18px 24px;
  }

  .aila-auth-tabs{
    margin-top:24px;
  }
}

/* center the password visibility control inside the actual 40px input. */
.aila-auth-card .hp-form__field--password{
  position:relative!important;
}

.aila-auth-card .hp-form__field--password input.hp-field--password,
.aila-auth-card .hp-form__field--password input[type="password"],
.aila-auth-card .hp-form__field--password input[type="text"]{
  height:40px!important;
  min-height:40px!important;
  padding-right:48px!important;
}

.aila-auth-card .hp-form__field--password > .hp-field__icon,
.aila-auth-card .hp-form__field--password .hp-field__icon{
  position:absolute!important;
  top:auto!important;
  right:4px!important;
  bottom:2px!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  line-height:1!important;
  transform:none!important;
}

.aila-auth-card .hp-form__field--password .hp-field__icon i,
.aila-auth-card .hp-form__field--password .hp-field__icon::before{
  display:block!important;
  margin:0!important;
  line-height:1!important;
}

/* AILA 4.2.4: keep authentication cards away from mobile screen edges. */
@media(max-width:760px){
  body.aila-auth-page .aila-auth-hp-page{
    padding-right:16px!important;
    padding-left:16px!important;
  }
}

@media(max-width:420px){
  body.aila-auth-page .aila-auth-hp-page{
    padding:16px!important;
  }

  .aila-auth-shell{
    border:1px solid #e1e2de!important;
    border-radius:22px!important;
  }
}

@media(max-width:760px){
  body.aila-auth-page .aila-header__inner{
    width:calc(100% - 32px)!important;
    margin-right:auto!important;
    margin-left:auto!important;
  }
}
