/* Auth pages (login/register/forget) - seo_facai matching theme */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --bg:#f7f8fa;
  --card:#ffffff;
  --line:#e8ecf2;
  --text:#111827;
  --muted:#6b7280;
  --primary:#1e80ff;
  --primary-700:#1766cc;
  --chip:#f6f7fb;
}

html,body{ height:100%; }
body{
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2rem 1.25rem;
}

.box{
  width:100%;
  max-width:1080px;
  min-height:640px;
  background: var(--card);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 14px 40px rgba(16,24,40,0.08);
  overflow:hidden;
}

.inner-box{
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:0;
}

.forms-wrap{
  position:relative;
  padding:48px 44px;
  background:var(--card);
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:1fr;
}

form{
  width:100%;
  max-width:360px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
  grid-column:1 / 2;
  grid-row:1 / 2;
  transition:opacity .2s ease;
}

form.sign-up-form,
form.forget-form{
  opacity:0;
  pointer-events:none;
}

main.sign-up-mode form.sign-in-form{ opacity:0; pointer-events:none; }
main.sign-up-mode form.sign-up-form{ opacity:1; pointer-events:auto; }
main.forget-mode form.sign-in-form{ opacity:0; pointer-events:none; }
main.forget-mode form.forget-form{ opacity:1; pointer-events:auto; }

.logo{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.logo h4{
  font-size:18px;
  font-weight:700;
  color:var(--text);
}

.heading{ text-align:center; }
.heading h2{
  font-size:24px;
  font-weight:800;
  margin-bottom:6px;
}
.heading h6{
  font-size:13px;
  color:var(--muted);
}
.heading .toggle{
  font-size:13px;
  color:var(--primary);
  text-decoration:none;
  margin-left:6px;
  font-weight:600;
}
.heading .toggle:hover{ color:var(--primary-700); }

.actual-form{ display:flex; flex-direction:column; gap:14px; }

.input-wrap{
  position:relative;
  height:48px;
  border-radius:12px;
  background:var(--chip);
  border:1px solid var(--line);
  padding:0 14px;
  display:flex;
  align-items:center;
}
.input-field{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
  color:var(--text);
}
.input-wrap label{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:13px;
  color:#9aa0a6;
  pointer-events:none;
  transition:all .2s ease;
}
.input-field:focus + label,
.input-field.active + label{
  top:6px;
  font-size:11px;
  color:var(--primary);
}

.vcode-container{
  display:flex;
  align-items:center;
  gap:10px;
}
.vcode-input{ flex:1; }
.vcode-img{
  width:120px;
  height:48px;
  border-radius:10px;
  border:1px solid var(--line);
  cursor:pointer;
  object-fit:cover;
}

.sign-btn{
  height:46px;
  border:none;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:all .2s ease;
}
.sign-btn:hover{ background:var(--primary-700); }

.direct-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  border-radius:12px;
  border:1px dashed #cdd6e5;
  color:var(--primary);
  font-size:13px;
  text-decoration:none;
  background:#f8faff;
}
.forget-link a{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
}
.forget-link a:hover{ color:var(--primary); }

.text{
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

/* Right side */
.carousel{
  position:relative;
  background:linear-gradient(135deg, #eaf2ff 0%, #f7f9ff 55%, #eef4ff 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}
.images-wrapper{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .6s ease;
}
.image.show{ opacity:1; }

.carousel::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg,rgba(5,12,28,.08),rgba(5,12,28,.36));
  pointer-events:none;
}
.text-slider{
  position:relative;
  z-index:2;
  width:100%;
  max-width:360px;
  padding:20px 14px 16px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(7,16,38,.74),rgba(38,27,78,.58));
  box-shadow:0 18px 44px rgba(3,8,24,.34),inset 0 1px 0 rgba(255,255,255,.18);
  text-align:center;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.text-wrap{
  height:8rem;
  overflow:hidden;
}
.text-group{
  transition:transform .45s cubic-bezier(.22,.75,.28,1);
}
.text-slide{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  height:8rem;
  padding:2px 4px;
}
.text-slide h2{
  margin:0;
  font-size:clamp(18px,2vw,21px);
  font-weight:800;
  line-height:1.3;
  letter-spacing:.02em;
  text-shadow:0 2px 10px rgba(0,0,0,.62);
}
.text-slide p{
  margin:0;
  font-size:14px;
  font-weight:600;
  line-height:1.45;
  letter-spacing:.01em;
  text-shadow:0 2px 8px rgba(0,0,0,.68);
}
.text-slide-1 h2{ color:#9ff3ff; }
.text-slide-1 p{ color:#e0fbff; }
.text-slide-2 h2{ color:#ffd0ee; }
.text-slide-2 p{ color:#fff0f8; }
.text-slide-3 h2{ color:#ffe7a3; }
.text-slide-3 p{ color:#fff7d6; }
.bullets{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:9px;
}
.bullets span{
  width:8px;
  height:8px;
  border:1px solid rgba(255,255,255,.52);
  border-radius:50%;
  background:rgba(255,255,255,.28);
  box-shadow:0 2px 7px rgba(0,0,0,.25);
  cursor:pointer;
  transition:width .22s ease,background .22s ease,box-shadow .22s ease;
}
.bullets span.active{ width:22px; border-radius:999px; }
.bullets span:nth-child(1).active{ background:#67e8f9; box-shadow:0 0 12px rgba(103,232,249,.72); }
.bullets span:nth-child(2).active{ background:#f9a8d4; box-shadow:0 0 12px rgba(249,168,212,.72); }
.bullets span:nth-child(3).active{ background:#fcd34d; box-shadow:0 0 12px rgba(252,211,77,.72); }

/* Responsive */
@media (max-width: 980px){
  .inner-box{ grid-template-columns:1fr; }
  .carousel{ display:none; }
  .box{ min-height:auto; }
  .forms-wrap{ padding:36px 28px; }
}
@media (max-width: 560px){
  main{ padding:1.5rem .9rem; }
  .forms-wrap{ padding:28px 20px; }
  form{ max-width:100%; }
  .heading h2{ font-size:20px; }
}

/* Authentication feedback keeps the existing Layer behavior while giving AJAX results a centered visual state. */
.layui-layer-msg.auth-feedback{
  min-width:min(330px,calc(100vw - 32px)) !important;
  border:1px solid rgba(117,101,233,.22) !important;
  border-radius:18px !important;
  box-shadow:0 22px 58px rgba(43,52,112,.24),0 1px 0 rgba(255,255,255,.88) inset !important;
  overflow:hidden !important;
}
.layui-layer-msg.auth-feedback .layui-layer-content{
  min-height:54px;
  padding:17px 20px 17px 50px !important;
  color:#303754 !important;
  font-size:14px;
  font-weight:600;
  line-height:1.55;
  background:linear-gradient(135deg,#fff 0%,#f7f6ff 55%,#f1f9ff 100%);
}
.layui-layer-msg.auth-feedback .layui-layer-ico{
  left:18px !important;
  top:18px !important;
}
.layui-layer-msg.auth-feedback-success{ border-color:rgba(62,179,143,.28) !important; }
.layui-layer-msg.auth-feedback-success .layui-layer-content{ background:linear-gradient(135deg,#f4fff9 0%,#fff 56%,#eefaff 100%); }
.layui-layer-msg.auth-feedback-error{ border-color:rgba(235,102,139,.28) !important; }
.layui-layer-msg.auth-feedback-error .layui-layer-content{ background:linear-gradient(135deg,#fff6f8 0%,#fff 56%,#fff5ed 100%); }
