:root{
  --gold:#f1d77e;
  --gold-deep:#8f6a1f;
  --panel:#182b6b;
  --panel-border:#d4b45f;
  --input:#f3f4f7;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Be Vietnam Pro",Arial,sans-serif;
  color:#fff;
  min-height:100vh;
  background:#081224;
  overflow-x:hidden;
}

.auth-bg{
  position:fixed;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(9,13,25,.66), rgba(30,116,190,.50)),
    url("./background/backgroundnew.png") center/cover no-repeat;
  filter:saturate(1.12) brightness(.88);
  z-index:-2;
}

.auth-page--site-member .auth-bg{
  background:
    linear-gradient(to bottom, rgba(9,13,25,.66), rgba(30,116,190,.50)),
    url("./background/backgroundnew.png") center/cover no-repeat;
  filter:saturate(1.12) brightness(.88);
}

.auth-overlay{
  position:fixed;
  inset:0;
  background:radial-gradient(circle at center, rgba(40,120,200,.10), rgba(8,12,22,.40));
  z-index:-1;
}

.topbar{
  position:fixed;
  top:0;left:0;right:0;
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:2px solid rgba(241,215,126,.62);
  background:linear-gradient(to bottom, rgba(0,0,0,.64), rgba(0,0,0,.38));
  z-index:20;
}

.top-logo{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  width:auto;
  height:48px;
  max-width:min(240px,42vw);
  display:flex;
  align-items:center;
}
.top-logo img{
  height:100%;
  width:auto;
  max-width:100%;
  object-fit:contain;
}

.top-nav{
  display:flex;gap:28px;
}
.top-nav a{
  color:#fff4d5;
  text-decoration:none;
  font-family:"Cinzel",serif;
  font-weight:700;
  letter-spacing:.8px;
  font-size:22px;
  text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.top-nav a.active,.top-nav a:hover{color:var(--gold)}

.menu-toggle{
  position:absolute;
  right:14px;top:20px;
  width:36px;height:36px;
  border:1px solid rgba(241,215,126,.6);
  border-radius:8px;
  background:rgba(0,0,0,.35);
  color:#fff;
  display:none;
}

.main{
  position:relative;
  z-index:10;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:128px 16px 100px;
}

.auth-card{
  position:relative;
  z-index:11;
  width:min(600px,92vw);
  border:2px solid var(--panel-border);
  border-radius:14px;
  background:linear-gradient(to bottom, rgba(31,52,120,.98), rgba(21,40,99,.97));
  box-shadow:0 22px 38px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06);
  padding:28px 28px 20px;
}
.auth-card.register{width:min(640px,94vw)}

.auth-card h1{
  margin:2px 0 16px;
  text-align:center;
  color:#ffe37f;
  font-family:"Cinzel",serif;
  font-size:55px;
  letter-spacing:.5px;
  text-shadow:0 2px 0 #6f5718,0 8px 20px rgba(0,0,0,.42);
}

.divider{
  height:1px;
  background:rgba(240,220,154,.55);
  margin-bottom:14px;
}

.field{margin-bottom:10px}
.field input{
  width:100%;
  height:40px;
  border-radius:5px;
  border:1px solid #c9d1e0;
  background:var(--input);
  color:#1a1a1a;
  padding:0 12px;
  font-size:16px;
}
.password-wrap{
  position:relative;
}
.password-wrap input{
  padding-right:88px;
}
.toggle-password{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  height:28px;
  min-width:64px;
  border:1px solid #b9a257;
  border-radius:5px;
  background:linear-gradient(to bottom, #f8e8a7, #ddbe58);
  color:#2f2208;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
}

.field input:focus{
  outline:none;
  border-color:#8bb7ff;
  box-shadow:0 0 0 2px rgba(139,183,255,.24);
}
.hint{
  margin:4px 0 0;
  font-size:12px;
  color:#d6dcf6;
}

.captcha{
  margin:12px auto 14px;
  width:min(300px,100%);
  background:#f8f8fb;
  border:1px solid #ccd2df;
  border-radius:6px;
  color:#2a2a2a;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:58px;
}

.auth-btn{
  width:100%;
  height:48px;
  border-radius:6px;
  border:1px solid #b9a257;
  background:linear-gradient(to bottom, #f8e8a7, #ddbe58);
  color:#2b1f07;
  font-weight:800;
  font-family:"Cinzel",serif;
  font-size:31px;
  letter-spacing:.5px;
  cursor:pointer;
}

.row{
  margin-top:8px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.row .sub-btn{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  text-align:center;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  color:#3a2a09;
  border:1px solid #b9a257;
  background:linear-gradient(to bottom, #f8e8a7, #ddbe58);
  border-radius:5px;
  padding:7px 6px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.extra{
  margin-top:6px;
  font-size:13px;
  color:#fff;
}
.extra a{color:#8bc4ff;text-decoration:none;font-weight:700}

.auth-msg{
  min-height:22px;
  margin-top:8px;
  margin-bottom:4px;
  font-size:13px;
  font-weight:600;
  color:#d9e4ff;
}
.auth-msg.ok{color:#87f3b2}
.auth-msg.error{color:#ff9da0}

.verify-gate__text{
  text-align:center;
  margin:0 0 16px;
  line-height:1.5;
  color:#e8edff;
}
.verify-gate__cta{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.tos{
  margin:8px 0 0;
  font-size:14px;
}
.tos a{color:#ff7878;text-decoration:none}

.social-panel{
  position:fixed;
  z-index:1;
  pointer-events:none;
  right:12px;
  top:266px;
  width:154px;
  border:1px solid rgba(241,215,126,.5);
  border-radius:8px;
  background:rgba(0,0,0,.62);
  padding:8px;
}
.social-panel a{
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#fff;
  font-weight:700;
  font-size:11px;
  padding:5px 5px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:5px;
  margin-bottom:6px;
  background:rgba(255,255,255,.06);
}
.social-panel .ico{
  width:15px;height:15px;border-radius:50%;
  background:#e7cc83;color:#2f2309;
  display:grid;place-items:center;
  font-size:10px;font-weight:800;
}

.bottom-social{
  position:fixed;
  z-index:1;
  pointer-events:none;
  left:0;right:0;bottom:0;
  height:62px;
  background:rgba(0,0,0,.78);
  border-top:1px solid rgba(241,215,126,.42);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.bottom-social .icon{
  width:32px;height:32px;border-radius:50%;
  border:1px solid rgba(255,255,255,.4);
  display:grid;place-items:center;
  color:#fff;
  font-weight:800;
}

@media (max-width:980px){
  .menu-toggle{display:block}
  .top-nav{
    position:absolute;top:78px;left:0;right:0;
    background:rgba(0,0,0,.92);
    border-bottom:1px solid rgba(241,215,126,.52);
    display:none;flex-direction:column;gap:10px;
    padding:12px 14px;
  }
  .top-nav.show{display:flex}
  .social-panel{display:none}
  .top-nav a{font-size:17px}
  .auth-card{padding:20px 16px}
  .auth-card h1{font-size:38px}
  .auth-btn{font-size:25px}
}

