@import url("style.css");

body.auth-page{
  background:
    radial-gradient(circle at top,rgba(224,191,137,.18),transparent 22%),
    linear-gradient(180deg,#091321 0,#132133 30%,#efe7db 30%,#f5efe5 100%);
}

.auth-page .topbar{
  position:relative;
  padding-bottom:18px;
}

.auth-shell{
  padding:62px 5vw 108px;
}

.auth-panel{
  max-width:1240px;
  min-height:760px;
  margin:0 auto;
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  border:1px solid rgba(201,164,106,.16);
  border-radius:32px;
  overflow:hidden;
  background:rgba(255,253,250,.94);
  box-shadow:0 30px 80px rgba(7,16,27,.18);
}

.auth-aside{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:30px;
  padding:72px 5vw;
  background:
    radial-gradient(circle at top,rgba(224,191,137,.16),transparent 24%),
    linear-gradient(160deg,#091321,#132235 62%,#1b3550);
  color:#fff;
}
.auth-eyebrow{
  margin:0 0 16px;
  color:var(--gold-strong);
  font:12px/1.4 Georgia,serif;
  letter-spacing:3px;
  text-transform:uppercase;
}
.auth-aside h1,
.auth-form-wrap h1{
  margin:0;
  font:500 clamp(36px,4.2vw,60px)/1.25 "Songti SC","Noto Serif SC",serif;
}
.auth-aside p{
  max-width:470px;
  margin:18px 0 0;
  color:rgba(214,224,233,.76);
}
.auth-features{
  display:grid;
  gap:16px;
  margin-top:40px;
}
.auth-features article{
  padding:20px 20px 18px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));
  border-color:rgba(255,255,255,.08);
  box-shadow:none;
}
.auth-features b{
  display:block;
  margin-bottom:8px;
  color:#fff;
  font-size:17px;
}
.auth-features span{
  color:rgba(214,224,233,.72);
  font-size:14px;
  line-height:1.8;
}
.auth-note{
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(214,224,233,.68);
  font-size:13px;
  line-height:1.9;
}

.auth-form-wrap{
  position:relative;
  padding:76px 5vw 70px;
  background:linear-gradient(180deg,rgba(255,253,250,.98),rgba(250,245,237,.98));
}
.auth-close{
  display:none;
  position:absolute;
  top:18px;
  right:18px;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(201,164,106,.28);
  border-radius:14px;
  background:rgba(255,255,255,.92);
  color:#6f5126;
  font-size:28px;
  line-height:1;
  box-shadow:0 10px 24px rgba(12,23,37,.08);
}
.auth-form-wrap p{
  margin:0;
  color:var(--text-soft);
}
.auth-subtitle{
  margin-top:14px;
  max-width:640px;
  font-size:15px;
  line-height:1.9;
}
.auth-tabs{
  display:inline-grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:30px 0 24px;
  padding:8px;
  border:1px solid rgba(201,164,106,.16);
  border-radius:22px;
  background:rgba(255,255,255,.65);
}
.auth-tab{
  min-width:132px;
  height:46px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  background:transparent;
  color:#54616e;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:background .24s ease,color .24s ease,box-shadow .24s ease,transform .24s ease;
}
.auth-tab.active{
  background:linear-gradient(180deg,#e1c78e,#c99f5c);
  color:#101923;
  box-shadow:0 14px 30px rgba(201,164,106,.22);
}

.auth-form{
  display:grid;
  gap:18px;
}
.field{
  display:grid;
  gap:8px;
}
.field label{
  color:#41505d;
  font-size:13px;
  font-weight:600;
}
.field input{
  width:100%;
  height:54px;
  padding:0 17px;
  border:1px solid rgba(190,175,153,.74);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  color:#1b2530;
  font-size:15px;
  outline:0;
  transition:border-color .24s ease,box-shadow .24s ease,background .24s ease;
}
.field input::placeholder{
  color:#9aa5af;
}
.field input:focus{
  border-color:rgba(201,164,106,.92);
  box-shadow:0 0 0 4px rgba(201,164,106,.12);
  background:#fff;
}
.field-inline{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:end;
}
.code-button{
  height:54px;
  padding:0 20px;
  border:1px solid rgba(201,164,106,.5);
  border-radius:18px;
  background:linear-gradient(180deg,#fff9ef,#f8ecd6);
  color:#876538;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:transform .24s ease,border-color .24s ease,background .24s ease;
}
.code-button:hover{
  transform:translateY(-1px);
  border-color:rgba(201,164,106,.74);
}
.code-button:disabled{
  opacity:.74;
  cursor:default;
}

.auth-helper{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  color:#687480;
  font-size:13px;
}
.auth-helper a,
.switch-link a,
.agreement-copy a{
  color:#866135;
}
.auth-helper label{
  display:flex;
  align-items:center;
  gap:8px;
}
.submit-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:6px;
}
.submit-row button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  height:54px;
  padding:0 30px;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg,#e1c78e,#c99f5c);
  color:#101923;
  font-size:16px;
  font-weight:700;
  letter-spacing:2px;
  cursor:pointer;
  box-shadow:0 20px 40px rgba(201,164,106,.2);
  transition:transform .24s ease,box-shadow .24s ease;
}
.submit-row button:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 46px rgba(201,164,106,.26);
}
.submit-row button:disabled{
  opacity:.74;
  cursor:default;
}
.submit-row small{
  color:#7a8691;
  line-height:1.8;
}
.switch-link{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid rgba(190,175,153,.38);
  color:#6f7b86;
  font-size:14px;
}
.agreement-copy{
  margin-top:18px;
  color:#7c8792;
  font-size:13px;
  line-height:1.85;
}

.auth-toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:40;
  min-width:280px;
  max-width:420px;
  padding:16px 18px;
  border:1px solid rgba(201,164,106,.24);
  border-radius:18px;
  background:linear-gradient(180deg,#0b1624,#112235);
  color:#fff;
  box-shadow:0 24px 52px rgba(6,14,22,.3);
}
.auth-toast strong{
  display:block;
  margin-bottom:6px;
  color:var(--gold-strong);
  font-size:15px;
}
.auth-toast p{
  color:rgba(214,224,233,.76);
  font-size:13px;
  line-height:1.8;
}

[hidden]{display:none!important}

@media(max-width:980px){
  .auth-shell{padding-top:34px}
  .auth-panel{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .auth-aside,
  .auth-form-wrap{
    padding:48px 7vw;
  }
}

@media(max-width:860px){
  .auth-page .topbar,
  .auth-page footer,
  .auth-page .auth-aside{
    display:none;
  }
  .auth-page{
    min-height:100vh;
  }
  .auth-shell{
    min-height:100vh;
    padding:20px 16px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .auth-panel{
    width:min(100%,560px);
    border-radius:28px;
  }
  .auth-form-wrap{
    padding:34px 24px 30px;
  }
  .auth-close{
    display:flex;
  }
  .field-inline{
    display:block;
    position:relative;
  }
  .code-button{
    position:absolute;
    right:8px;
    bottom:8px;
    width:auto;
    min-width:98px;
    height:38px;
    padding:0 14px;
    border-radius:14px;
    z-index:1;
  }
  .field-inline .field{
    margin:0;
  }
  .field-inline .field input{
    padding-right:126px;
  }
}

@media(max-width:520px){
  body.auth-page{
    background:
      radial-gradient(circle at top,rgba(224,191,137,.18),transparent 20%),
      linear-gradient(180deg,#091321 0,#162438 18%,#f2ebdf 18%,#f6f0e7 100%);
  }
  .auth-shell{
    padding:16px 12px;
  }
  .auth-panel{
    width:100%;
    border-radius:26px;
  }
  .auth-form-wrap{
    padding:28px 16px 24px;
  }
  .auth-close{
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    border-radius:12px;
    font-size:24px;
  }
  .auth-form-wrap h1{
    font-size:32px;
  }
  .field-inline .field input{
    padding-right:112px;
  }
  .field-inline .code-button{
    right:7px;
    bottom:7px;
    min-width:88px;
    height:36px;
    padding:0 12px;
    border-radius:12px;
    font-size:13px;
  }
  .auth-tabs{
    width:100%;
    display:grid;
  }
  .auth-tab{
    min-width:0;
  }
  .auth-helper,
  .submit-row{
    flex-direction:column;
    align-items:stretch;
  }
  .submit-row button{
    width:100%;
  }
  .submit-row small{
    text-align:center;
  }
  .auth-toast{
    right:12px;
    left:12px;
    bottom:12px;
    min-width:0;
  }
}
