@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&display=swap");

:root{
  --bg:#0a0a0c;
  --side-bg:#0d0e10;
  --panel:#161616;
  --text:#f3f4f6;
  --muted:#a8b0bd;
  --border:#202226;
  --input-bg:rgba(0,0,0,.35);
  --input-border:rgba(255,255,255,.14);
  --accent-1:#000AD0;
  --accent-2:#0009B4;
  --accent-3:#000898;
  --shadow:0 30px 70px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:"Sora", "Segoe UI", sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:14px;
  zoom:.96;
}

.auth-page{
  min-height:100vh;
  position:relative;
  overflow:hidden;
}

.auth-vignette{
  position:fixed;
  inset:0;
  background:var(--bg);
  pointer-events:none;
}

.auth-wrap{
  position:relative;
  z-index:2;
  min-height:100vh;
  display:grid;
  align-items:center;
  justify-items:center;
  padding:clamp(24px, 6vw, 80px);
}

.auth-page--split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(440px,.62fr);
}

.auth-side{
  position:relative;
  z-index:2;
  min-height:100vh;
  padding:clamp(28px, 4vw, 64px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:32px;
  background:var(--side-bg);
  border-right:1px solid var(--border);
}

.side-hero{ max-width:480px; margin:auto 0; }
.side-hero h1{
  margin:0 0 14px;
  font-size:clamp(28px, 3vw, 38px);
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:800;
}
.side-hero > p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}

.side-points{
  display:grid;
  gap:14px;
  margin-top:32px;
}
.side-point{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.side-check{
  flex:none;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  color:#8f9dff;
}
.side-check svg{
  width:14px;
  height:14px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.side-point b{
  display:block;
  font-size:12.5px;
  font-weight:700;
}
.side-point span{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11.5px;
  line-height:1.5;
}

.side-foot{
  color:#6d7482;
  font-size:10.5px;
}
.side-foot-link{
  color:#9aa3b5;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.01em;
  border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.side-foot-link:hover{
  color:#c7cede;
  border-color:currentColor;
}

@media (max-width: 1080px){
  .auth-page--split{ grid-template-columns:1fr; }
  .auth-side{ display:none; }
}

.auth-card{
  width:min(420px, 100%);
  padding:28px;
}

.auth-panels{
  position:relative;
  overflow:hidden;
}
.auth-panels--single{
  overflow:visible;
}
.auth-panel{
  width:100%;
  transition:transform .45s ease, opacity .35s ease;
}
.auth-panel--reset{
  position:absolute;
  inset:0;
  transform:translateY(16px);
  opacity:0;
  pointer-events:none;
}
.auth-page.is-reset .auth-panel--login{
  transform:translateY(-16px);
  opacity:0;
  pointer-events:none;
}
.auth-page.is-reset .auth-panel--reset{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}
.auth-panels--single .auth-panel--reset{
  position:relative;
  inset:auto;
  transform:none;
  opacity:1;
  pointer-events:auto;
}

.auth-logo{
  display:block;
  height:46px;
  width:auto;
  margin-bottom:20px;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.35));
  color:#fff;
  fill:currentColor;
}
.auth-logo .st0{ fill:currentColor; }

.auth-head{ margin-bottom:16px; }
.auth-title{
  margin:0;
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.02em;
}
.title-dot{
  color:var(--accent-3);
}
.auth-sub{
  margin:8px 0 0;
  font-size:13px;
  color:var(--muted);
}

.auth-form{ display:grid; gap:14px; }

.field{ display:grid; gap:6px; }
.label{
  font-size:12px;
  font-weight:700;
  color:#d4dae5;
}

.input{
  width:100%;
  height:44px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--input-border);
  background:var(--input-bg);
  outline:none;
  font-size:12px;
  color:var(--text);
  transition:box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.input::placeholder{ color:#7c8696; }
.input:focus{
  border-color:rgba(0,10,208,.6);
  box-shadow:0 0 0 3px rgba(0,10,208,.18);
  background:rgba(255,255,255,.08);
}
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text);
  caret-color:var(--text);
  -webkit-box-shadow:0 0 0 1000px var(--input-bg) inset;
  box-shadow:0 0 0 1000px var(--input-bg) inset;
  transition:background-color 9999s ease-in-out 0s;
}

.input-with-icon{ position:relative; }
.input-with-icon .input{ padding-right:44px; }

.icon-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.icon-btn svg{ width:18px; height:18px; fill:#c1c9d6; }

.auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#d4dae5;
  user-select:none;
}
.check input{ width:16px; height:16px; }

.msg{
  margin:0;
  min-height:16px;
  text-align:left;
  font-size:11px;
  color:#f87171;
}
.msg.is-ok{
  color:#4ade80;
}

.btn{
  height:44px;
  border:0;
  border-radius:12px;
  padding:0 14px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
  transition:transform .15s ease, filter .2s ease;
}
.btn.primary{
  background:var(--accent-1);
  color:#fff;
  border:1px solid var(--accent-1);
  box-shadow:none;
}
.btn.primary:hover{ filter:none; background:var(--accent-2); border-color:var(--accent-2); }
.btn.primary:active{ transform:translateY(1px); }
.btn.biometric{
  margin-top:10px;
  color:#eef2ff;
  background:transparent;
  border:1px solid rgba(199,203,233,.55);
}
.btn.biometric:hover{ border-color:#fff; background:rgba(255,255,255,.07); }
.btn:disabled{ opacity:.7; cursor:not-allowed; }
.w100{ width:100%; }

.auth-help{
  text-align:center;
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.link{
  color:#c7b7ff;
  text-decoration:none;
  font-weight:700;
}
.link:hover{ text-decoration:underline; }
.link.subtle{ color:#a8b0bd; }

@media (max-width: 720px){
  .auth-wrap{
    align-items:center;
    justify-items:center;
  }
}

@media (max-width: 480px){
  .auth-card{
    width:100%;
    max-width:100%;
    border-radius:24px;
    padding:24px 20px;
    margin:0 12px;
  }

  .auth-card input[type="text"],
  .auth-card input[type="email"],
  .auth-card input[type="password"]{
    min-height:48px;
    font-size:16px;
    border-radius:14px;
  }

  .auth-card button[type="submit"],
  .auth-card .auth-btn{
    min-height:50px;
    font-size:15px;
    border-radius:14px;
  }
}

@media (max-width: 360px){
  .auth-card{
    padding:20px 16px;
    margin:0 8px;
    border-radius:20px;
  }
}
