:root{
  --bg:#020617;
  --c1:#38bdf8;
  --c2:#a855f7;
  --c3:#22c55e;
  --noise:rgba(255,255,255,.05);
}


#login_wrap,
#login_wrap *{
  caret-color: transparent;
}

/* ==============================
   WRAP / BACKGROUND
   ============================== */

#login_wrap{
  background:url("images/bg.webp") no-repeat center center fixed;
  background-size:cover;
  position:relative;
  overflow:hidden;
  min-height:100vh;
  padding:20px 0;
}

#login_wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.20);
  border:1px solid currentColor;
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  pointer-events:none;
  z-index:1;
}

#login_wrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-radial-gradient(circle, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  mix-blend-mode:overlay;
  pointer-events:none;
  opacity:.12;
  animation:grain .35s steps(2) infinite;
  z-index:2;
}

.login-fog{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:3;
}

#login_visualizer{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  display:block;
  pointer-events:none;
  z-index:4;
  max-width:none;
}

.login-container{
  position:relative;
  z-index:5;
  width:min(1280px,94%);
  margin:0 auto;
  padding:20px;
}

/* ==============================
   MAIN LAYOUT
   ============================== */

.login-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:stretch;
}

.left-panel,
.right-panel,
.store-box{
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}

.left-panel{
  padding:30px 28px;
  display:flex;
  flex-direction:column;
  border:1px solid currentColor;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.right-panel{
  padding:32px 34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:stretch;
  border:1px solid currentColor;
  border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.login-menu-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 0 26px;
  flex:0 0 auto;
}

.login-tabs-nav{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  width:fit-content;
  max-width:100%;
  margin:0 auto;
  padding:6px;
  border-radius:24px;
  border-width:1px;
  border-style:solid;
  border-color:color-mix(in srgb, currentColor 40%, transparent);
  overflow-x:auto;
  scrollbar-width:none;
}

.auth-forms-wrap{
  width:100%;
  display:block;
  flex:1 1 auto;
}

.login-tab-panel{
  width:100%;
  display:block;
}

.stream-box{
  grid-column:1 / -1 !important;
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  padding:24px !important;
  background: transparent !important;
  border:1px solid currentColor;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:28px !important;
  box-shadow:0 24px 70px rgba(0,0,0,.28) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  transform:none !important;
  z-index:3 !important;
}

.store-box{
  grid-column:1 / -1;
  width:100%;
  padding:24px;
  border:1px solid currentColor;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

/* ==============================
   LEFT PANEL
   ============================== */

.language-switch img{
  width:32px;
  height:auto;
  cursor:pointer;
}

.site-brand{
  margin:18px 0 16px;
}

.left-panel .centered_element{
  text-align:center;
}

.left-panel #login_logo{
  display:block;
  max-width:min(240px,70vw) !important;
  height:auto !important;
  margin:0 0 14px !important;
}

.login_text{
  margin-bottom:24px;
}

.left-panel .login_text p,
.left-panel .divider span,
.left-panel #sonic_title{
}

#sonic_title{
  font-size:20px;
  font-weight:900;
  text-transform:uppercase;
  text-align:center;
}

#social_section{
  margin-top:auto;
  padding-top:24px;
  width:100%;
  display:flex;
  justify-content:center;
}

.social_container{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:14px;
  width:100%;
}

.social_element{
  flex:0 0 auto;
}

.social_element a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:68px;
  height:68px;
  border-radius:24px;
  border: 2px solid currentColor;
  background: color-mix(in srgb, currentColor 18%, transparent);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  text-decoration:none;
}

.social_element i{
  font-size:30px;
  line-height:1;
  transition:transform .22s ease;
}

.social_element a:hover{
  background: color-mix(in srgb, currentColor 40%, transparent);
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  transform:translateY(-3px);
  box-shadow: 0 8px 18px color-mix(in srgb, currentColor 14%, transparent);
}

.social_element a:hover i{
  transform:scale(1.10);
}

/* ==============================
   RIGHT PANEL / FORMS
   ============================== */

.form-group{
  margin-bottom:20px;
  position:relative;
}

.input-container{
  position:relative;
  overflow:hidden;
  border-radius:24px;
}

.input-bg{
  position:absolute;
  inset:0;
  border-width:1px;
  border-style:solid;
  border-color:color-mix(in srgb, currentColor 40%, transparent);
  border-radius:24px;
  transition:all .3s ease;
}

.input-container:focus-within .input-bg{
  border-color:color-mix(in srgb, currentColor 80%);
  box-shadow: 0 8px 18px color-mix(in srgb, currentColor 14%, transparent);
}

.input-container input{
  width:100%;
  background:transparent;
  padding:28px 24px 14px 24px;
  font-size:16px;
  font-weight:900;
  outline:none;
  border:none;
  position:relative;
  z-index:2;
}

.input-container input::placeholder{
  opacity:0 !important;
}

.input-container label{
  position:absolute;
  left:24px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  font-weight:900;
  pointer-events:none;
  transition:all .3s ease;
  z-index:3;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label{
  top:12px;
  font-size:12px;
  transform:translateY(0);
}

.input-wave{
  position:absolute;
  bottom:0;
  left:-100%;
  width:100%;
  height:2px;
  background: color-mix(in srgb, currentColor 40%, transparent);
  transition:all .3s ease;
  z-index:4;
}

.input-container:focus-within .input-wave{
  left:100%;
  animation:inputWaveFlow 1s ease-in-out;
}

.password-container{
  position:relative;
}

.password-toggle{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5;
}

.password-toggle .hide-icon{
  display:none;
}

.form-options{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center;
  margin-bottom:20px;
}

.forgot-password,
.forgot_password{
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}

.form-group.error .input-bg{
  background:rgba(255,107,107,.08);
  border-color:rgba(255,107,107,.6);
  box-shadow:0 0 0 3px rgba(255,107,107,.12);
}

.form-group .error-message{
  display:none;
  margin-top:10px;
  font-size:14px;
  background:rgba(255,107,107,.08);
  padding:6px 10px;
  border-radius:8px;
}

.form-group.error .error-message{
  display:block;
}

@keyframes inputWaveFlow{
  0%{
    left:-100%;
  }
  100%{
    left:100%;
  }
}

@media (max-width: 640px){
  .form-group{
    margin-bottom:16px;
  }

  .input-container{
    border-radius:10px;
  }

  .input-bg{
    border-radius:10px;
  }

  .input-container input{
    padding:24px 18px 12px 18px;
    font-size:15px;
  }

  .input-container label{
    left:18px;
    font-size:15px;
  }

  .input-container input:focus + label,
  .input-container input:not(:placeholder-shown) + label{
    top:10px;
    font-size:11px;
  }

  .password-toggle{
    right:10px;
    width:36px;
    height:36px;
  }

  .form-options{
    margin-bottom:16px;
  }

  .forgot-password,
  .forgot_password{
    font-size:14px;
  }

  .form-group .error-message{
    font-size:13px;
  }
}

/* ==============================
   BUTTONS / DIVIDERS
   ============================== */

.gradient-button{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:54px;
  border:none;
  border-radius:24px;
  position:relative;
  cursor:pointer;
  margin-bottom:20px;
  overflow:hidden;
}

.button-bg{
  position:absolute;
  inset:0;
  background: color-mix(in srgb, currentColor 18%, transparent);
  border: 2px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius:24px;
  transition:all .3s ease;
}

.gradient-button:hover .button-bg{
  background: color-mix(in srgb, currentColor 40%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, currentColor 14%, transparent);
}

.button-content{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  font-size:18px;
  font-weight:900;
}

.gradient-button .button-content i{
  margin-right:6px;
}

.signup-link{
  margin:18px 0;
  text-align:center;
  font-size:16px;
  animation:fadeIn .8s ease;
}

.signup-link p{
  margin:0;
}

.signup-link .bclick{
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
}

.divider{
  display:flex;
  align-items:center;
  margin:12px 0;
  gap:16px;
}

.divider-line{
  flex:1;
  height:1px;
  position:relative;
  overflow:hidden;
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.line-gradient{
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, currentColor 80%, transparent),
    transparent
  );
  animation:lineFlow 3s ease-in-out infinite;
}

.right-panel .divider span,
.store-box .divider span{
  font-size:15px;
}

.divider span{
  font-size:16px;
  font-weight:900;
  letter-spacing:.5px;
}

/* ==============================
   TOP NOTIFY
   ============================== */

.top_notify_placeholder .top_notify .close_notify,
.top_notify_placeholder .top_notify .fa-times,
.top_notify_placeholder .top_notify button,
.top_notify_icon img{
  display:none;
}

.top_notify_placeholder{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:20px 0;
}

.top_notify_placeholder .top_notify{
  display:inline-block;
  max-width:100%;
  color:red;
  background: color-mix(in srgb, currentColor 40%, transparent);
  border-radius:24px;
  border: 2px solid currentColor;
  border-color: color-mix(in srgb, currentColor 40%, transparent);
  font-weight:900;
  font-size:16px;
  text-align:center;
  line-height:1.4em;
  animation:fadeIn .25s ease-in-out;
}

/* ==============================
   SELECTBOXIT
   ============================== */

.selectboxit-btn.selectboxit-enabled,
.selectboxit-btn.selectboxit-enabled:focus,
.selectboxit-btn.selectboxit-enabled:active{
  background:transparent !important;
  border:1px solid currentColor !important;
  font-weight:900;
  box-shadow:none !important;
}

.selectboxit-btn.selectboxit-enabled:hover{
  background:color-mix(in srgb, currentColor 18%, transparent) !important;
  border:1px solid currentColor !important;
  box-shadow:none !important;
}

.selectboxit-list .selectboxit-option-anchor,
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor,
.selectboxit-list > .selectboxit-disabled > .selectboxit-option-anchor{
  font-weight:900;
  box-shadow:none !important;
  transition:all .3s ease;
}

.selectboxit-list .selectboxit-option-anchor:hover,
.selectboxit-list .selectboxit-focus .selectboxit-option-anchor:hover{
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.selectboxit-container span{
  font-size:16px;
  font-weight:900;
}

.selectboxit-options{
  background: color-mix(in srgb, currentColor 40%, black 60%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border:1px solid currentColor !important;
  border-radius:24px;
  box-shadow:0 8px 25px rgba(0,0,0,.12);
  overflow:hidden;
}

.selectboxit-options .selectboxit-option,
.selectboxit-options .selectboxit-option .selectboxit-option-anchor{
  background: transparent !important;
}

.setting_element.error .selectboxit-container{
  border-color:#ff6b6b !important;
}

.setting_element.error .selectboxit-text,
.selectboxit-btn.error,
.selectboxit-list.error{
  border-color:#ff6b6b !important;
}

/* ==============================
   TABS
   ============================== */

.login-tabs-nav .tab-indicator{
  display:none !important;
}

.login-tabs-nav .tab-btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0;
  border:0;
  border-radius:24px;
  background:transparent;
  box-shadow:none;
  overflow:hidden;
  cursor:pointer;
  color:inherit;
}

.login-tabs-nav .tab-btn .button-bg{
  position:absolute;
  inset:0;
  border-radius:inherit;
  opacity:0;
  transition:opacity .25s ease, background .3s ease, box-shadow .3s ease;
  z-index:0;
}

.login-tabs-nav .tab-btn .button-content{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 18px;
  font-size:18px;
  font-weight:900;
  white-space:nowrap;
}

.login-tabs-nav .tab-btn.active .button-bg,
.login-tabs-nav .tab-btn[aria-selected="true"] .button-bg{
  opacity:1;
}

.login-tabs-nav .tab-btn:hover .button-bg{
  opacity:1;
}

@media (max-width: 640px){
  .login-tabs-nav .tab-btn{
    flex:0 0 calc(50% - 4px) !important;
    max-width:calc(50% - 4px) !important;
    width:calc(50% - 4px) !important;
    border-radius:24px;
  }

  .login-tabs-nav .tab-btn .button-content{
    min-height:44px;
    padding:0 10px;
    text-align:center;
    white-space:normal !important;
    font-size:12px !important;
    line-height:1.15;
  }
}

/* ==============================
   CAROUSEL
   ============================== */

.wc-carousel{
  width:100%;
  overflow:hidden;
  position:relative;
}

.wc-track{
  display:flex;
  gap:12px;
  will-change:transform;
}

.wc-carousel:hover .wc-track{
  cursor:pointer;
}

.wc-item{
  flex:0 0 auto;
  width:175px;
  text-align:center;
}

.wc-item img{
  width:175px;
  height:175px;
  object-fit:cover;
  display:block;
}

.wc-title{
  font-weight:900;
  font-size:16px;
  line-height:1.2;
  text-align:center;
  margin-top:10px;
}

#catTrack,
#hotTrack{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
}

#catTrack > .wc-item,
#hotTrack > .wc-item{
  flex:0 0 200px !important;
  width:200px !important;
}

/* ==============================
   FOOTER / COOKIE / MODALS
   ============================== */

#main_footer{
  padding:24px !important;
  background: transparent !important;
  border:1px solid currentColor;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:28px !important;
  box-shadow:0 24px 70px rgba(0,0,0,.28) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;;
  text-align:center;
}

#main_footer a{
  text-decoration:none;
  transition:all .3s ease;
}

#main_footer a:hover{
  text-decoration:underline;
}

.cookie_wrap,
.cookie_wrap.back_modal{
  grid-column:1 / -1 !important;
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  padding:24px !important;
  background: transparent !important;
  border:1px solid currentColor;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:28px !important;
  box-shadow:0 24px 70px rgba(0,0,0,.28) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  transform:none !important;
  z-index:3 !important;
}

.cookie_button{
  display:flex;
  align-items:center;
}

.cookie_button button{
  background: color-mix(in srgb, currentColor 18%, transparent);
  border: 2px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
  border-radius:24px;
  transition:all .3s ease;
  font-weight:900;
}

.cookie_button button:hover{
  background: color-mix(in srgb, currentColor 40%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, currentColor 14%, transparent);
  transform:translateY(-2px);
}

#small_modal_in,
#over_modal_in{
  max-width:400px;
  width:calc(100% - 20px);
  margin:40px auto;
  border-radius:24px;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 25px 50px rgba(0,0,0,.15);
  position:relative;
  padding:20px;
}

#small_modal_content,
#over_modal_content{
  width:100%;
}

#small_modal_content .modal_title{
  font-size:16px;
  font-weight:900;
  text-align:center;
}

#small_modal_content .full_input{
  width:100%;
  border-radius:24px;
  background:rgba(255,255,255,.1);
  border:1px solid currentColor;
  outline:none;
  font-size:16px;
  transition:all .3s ease;
}

#small_modal_content .full_input:focus{
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.4);
  box-shadow:0 8px 25px rgba(0,0,0,.1);
}

#small_modal_content .theme_btn{
  width:100%;
  height:50px;
  border:none;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
  font-weight:900;
  cursor:pointer;
  transition:all .3s ease;
}

#small_modal_content .theme_btn:hover{
  background:linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.15));
  box-shadow:0 8px 25px rgba(0,0,0,.15);
}

/* ==============================
   ANIMATIONS
   ============================== */

@keyframes grain{
  to{ transform:translate(2px,-2px); }
}

@keyframes inputWaveFlow{
  0%{ left:-100%; }
  100%{ left:100%; }
}

@keyframes lineFlow{
  0%,100%{ left:-100%; }
  50%{ left:100%; }
}

@keyframes fadeIn{
  from{ opacity:0; transform:translateY(5px); }
  to{ opacity:1; transform:translateY(0); }
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 980px){
  .login-layout{
    grid-template-columns:1fr;
  }

  .left-panel,
  .right-panel{
    min-height:auto;
  }

  .right-panel{
    padding:24px 18px;
  }

  .left-panel{
    padding:24px 18px;
  }
}

@media (max-width: 768px){
  #login_wrap{
    background-attachment:scroll;
    background-position:center center;
    background-size:cover;
  }

  .wc-item{
    flex:0 0 100% !important;
    max-width:100% !important;
    padding:10px;
    border-radius:24px;
  }

  .wc-item img{
    height:100px;
    border-radius:10px;
    margin:0 auto;
  }
}

@media (max-width: 640px){
  .left-panel,
  .right-panel,
  .store-box{
    border-radius:20px;
  }

  .login-tabs-nav{
    width:100%;
    justify-content:flex-start;
  }

  .social_container{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
}

@media (max-width: 600px){
  #login_wrap{
    padding:10px 0;
  }

  .login-container{
    padding:10px;
  }

  .divider span{
    font-size:14px;
  }

  #sonic_title{
    font-size:14px;
  }

  .top_notify_placeholder{
    margin-top:10px;
    margin-bottom:10px;
  }

  .top_notify_placeholder .top_notify{
    width:100%;
    max-width:none;
    box-sizing:border-box;
    margin:0;
    padding:8px 10px;
    font-size:14px;
    border-radius:10px;
    white-space:normal;
    overflow:hidden;
    text-overflow:ellipsis;
    word-wrap:break-word;
  }

  .wc-carousel{
    max-width:100%;
    margin-top:14px;
    touch-action:pan-y;
    user-select:none;
    -webkit-user-select:none;
  }

  .wc-item img{
    -webkit-user-drag:none;
  }

  .wc-title{
    font-size:13px;
  }
}

@media (max-width: 767px){
  .form-options{
    flex-direction:row !important;
  }

  .forgot_password{
    margin:0;
    text-align:right;
    font-size:14px;
  }
}

/* ==============================
   VISUALISER
   ============================== */

.login_visualiser{
    display:flex;
    align-items:flex-end;
    justify-content:center;
    gap:4px;
    height:34px;
    margin:12px 0 14px;
}

.login_visualiser span{
    display:block;
    width:4px;
    min-height:10px;
    border-radius:999px;
    background:currentColor;
    animation:radioBar 1s ease-in-out infinite;
    box-shadow:0 0 10px color-mix(in srgb, currentColor 35%, transparent);
}

.login_visualiser span:nth-child(1)  { animation-delay:0.0s; height:10px; }
.login_visualiser span:nth-child(2)  { animation-delay:0.1s; height:20px; }
.login_visualiser span:nth-child(3)  { animation-delay:0.2s; height:26px; }
.login_visualiser span:nth-child(4)  { animation-delay:0.3s; height:14px; }
.login_visualiser span:nth-child(5)  { animation-delay:0.4s; height:22px; }
.login_visualiser span:nth-child(6)  { animation-delay:0.5s; height:30px; }
.login_visualiser span:nth-child(7)  { animation-delay:0.6s; height:16px; }
.login_visualiser span:nth-child(8)  { animation-delay:0.7s; height:24px; }
.login_visualiser span:nth-child(9)  { animation-delay:0.8s; height:18px; }
.login_visualiser span:nth-child(10) { animation-delay:0.9s; height:20px; }
.login_visualiser span:nth-child(11) { animation-delay:1.0s; height:20px; }
.login_visualiser span:nth-child(12) { animation-delay:1.1s; height:10px; }

@keyframes radioBar{
    0%,100%{
        transform:scaleY(0.45);
        opacity:0.35;
    }
    50%{
        transform:scaleY(1.15);
        opacity:1;
    }
}

/* ==============================
   LOGO
   ============================== */

.left-panel .site-brand{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:12px 0 16px;
}

.left-panel #login_logo{
  display:block;
  width:auto;
  max-width:min(240px, 72%);
  height:auto;
  margin:0 auto 14px;
}

@media (max-width: 600px){
  .left-panel .site-brand{
    margin:8px 0 12px;
  }

  .left-panel #login_logo{
    max-width:min(180px, 68vw);
    margin:0 auto 10px;
  }
}