:root{
  --bg:#09121D;
  --text:#fff;
  --muted:#9eabb9;
  --line:rgba(255,255,255,.14);
  --box:#121D2B;
  --box2:#162334;
  --action:#fff;
  --actionText:#09121D;
  --title:#fff;
  --danger:#ff8f8f;
  --success:#69d6a7;
  color-scheme:dark;
}
html[data-theme="light"]{
  --bg:#fff;
  --text:#09121D;
  --muted:#687583;
  --line:rgba(9,18,29,.16);
  --box:#f5f7f8;
  --box2:#edf1f3;
  --action:#121D2B;
  --actionText:#fff;
  --title:#000;
  --danger:#b52d3a;
  --success:#287a52;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
body{min-height:100vh;min-height:100dvh}
button,input{font:inherit}
a{color:inherit}
.auth-access-page{
  min-height:100vh;
  min-height:100dvh;
  padding:20px 18px calc(96px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  align-items:center;
  background:var(--bg);
}
.auth-access-top{
  position:relative;
  width:min(440px,100%);
  text-align:center;
  flex:0 0 auto;
}
.auth-access-back{
  position:absolute;
  left:0;
  top:0;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:transparent;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  padding:0;
}
.auth-access-back svg{width:17px;height:17px}
.auth-access-title{
  margin:2px 48px 5px;
  color:var(--title);
  font-size:22px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.025em;
  text-align:center;
}
.auth-access-sub{
  margin:0 auto;
  max-width:350px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  text-align:center;
}
.auth-access-center{
  width:min(410px,100%);
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:20px 0 34px;
}
.auth-access-form{width:100%}
.auth-alert{
  width:100%;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--box);
  text-align:center;
  font-size:12px;
  line-height:1.45;
}
.auth-alert.error{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 42%,transparent)}
.auth-alert.success{color:var(--success)}
.auth-field{margin:0 0 13px}
.auth-field label{
  display:block;
  margin:0 0 7px;
  color:var(--text);
  font-size:12px;
  font-weight:800;
}
.auth-input-wrap{position:relative}
.auth-input{
  width:100%;
  height:52px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:14px;
  outline:none;
  background:var(--box);
  color:var(--text);
  transition:border-color .15s,transform .15s,box-shadow .15s;
}
.auth-input::placeholder{color:var(--muted);opacity:.8}
.auth-input:focus{
  border-color:var(--text);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--text) 8%,transparent);
}
.auth-password .auth-input{padding-right:48px}
.auth-eye{
  position:absolute;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.auth-eye:hover,.auth-eye:focus-visible{background:var(--box2);color:var(--text)}
.auth-eye svg{width:18px;height:18px}
.auth-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:5px 1px 0;
}
.auth-remember{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:11px;
}
.auth-remember input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--action);
}
html[data-theme="light"] .auth-remember input{accent-color:#375025}
.auth-text-link{
  color:var(--text);
  text-decoration:none;
  font-size:11px;
  font-weight:800;
}
.auth-text-link:hover{text-decoration:underline}
.auth-bottom{
  position:fixed;
  left:50%;
  bottom:calc(20px + env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(410px,calc(100% - 36px));
  z-index:20;
}
.auth-create{
  margin:0 0 10px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}
.auth-create a{
  color:var(--text);
  font-weight:850;
  text-decoration:none;
}
.auth-create a:hover{text-decoration:underline}
.auth-action{
  width:100%;
  min-height:52px;
  border:0;
  border-radius:14px;
  background:var(--action);
  color:var(--actionText);
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
}
.auth-action:disabled{opacity:.55;cursor:not-allowed}
.auth-lock-mark{
  margin:38px auto 18px;
  width:50px;
  height:50px;
  border-radius:18px;
  background:var(--box);
  display:grid;
  place-items:center;
  color:var(--text);
}
.auth-lock-mark svg{width:21px;height:21px}
.auth-pin-form{
  width:min(410px,100%);
  text-align:center;
}
.auth-pin-row{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:10px auto 13px;
}
.auth-pin-box{
  width:40px;
  height:46px;
  padding:0;
  border:1px solid var(--line);
  border-radius:13px;
  background:transparent;
  color:var(--text);
  font-size:22px;
  line-height:46px;
  font-weight:850;
  text-align:center;
  outline:none;
  transition:border-color .15s,transform .15s;
}
.auth-pin-box:focus{
  border-color:var(--text);
  transform:translateY(-1px);
}
.auth-tries{
  margin:0;
  color:var(--muted);
  font-size:11px;
  text-align:center;
}
.auth-login-note{
  margin:0 0 9px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  text-align:center;
}
.auth-countdown{
  margin:0 0 9px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.auth-lock-error{
  margin-top:7px;
  color:var(--danger);
  text-align:center;
  font-size:12px;
}
@media(max-width:420px){
  .auth-access-page{padding-left:14px;padding-right:14px}
  .auth-access-title{font-size:20px}
  .auth-pin-row{gap:6px}
  .auth-pin-box{width:36px;height:43px;line-height:43px;border-radius:12px}
  .auth-bottom{width:calc(100% - 28px)}
}
@media(max-height:610px){
  .auth-access-center{justify-content:flex-start;padding-top:28px}
}
