:root{
  --auth-bg:#101014;
  --auth-card:#19191d;
  --auth-line:#2c2d35;
  --auth-input:#16161b;
  --auth-text:#f0f0f0;
  --auth-muted:#8b93a3;
  --auth-mint:#4ef2c5;
  --auth-mint-text:#06120e;
  --auth-deny:#232329;
  --auth-danger:#ff6b6b;
  --auth-radius:18px;
}
html,body{height:100%}
body.auth-body,body.auth-body *{box-sizing:border-box}
body.auth-body{
  margin:0;
  min-height:100vh;
  background:var(--auth-bg);
  color:var(--auth-text);
  font-family:Inter,"Noto Sans Arabic","Noto Sans Devanagari","Noto Sans Bengali","Noto Sans JP","Noto Sans SC",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.auth-lang{
  position:fixed;
  top:18px;
  inset-inline-end:18px;
  z-index:20;
}
.auth-lang-switch{position:relative}
.auth-lang-btn{
  min-height:36px;
  padding:0 12px;
  border:1px solid var(--auth-line);
  background:transparent;
  color:var(--auth-text);
  border-radius:999px;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  letter-spacing:.06em;
}
.auth-lang-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  inset-inline-end:0;
  min-width:168px;
  margin:0;
  padding:8px;
  list-style:none;
  background:#141418;
  border:1px solid var(--auth-line);
  border-radius:14px;
  max-height:min(70vh,440px);
  overflow:auto;
}
.auth-lang-switch.is-open .auth-lang-menu{display:block}
.auth-lang-menu a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:10px;
  color:var(--auth-muted);
  text-decoration:none;
}
.auth-lang-menu a:hover,.auth-lang-menu a[aria-current="page"]{
  background:#1c1c21;
  color:var(--auth-text);
}
.auth-lang-menu a span{color:var(--auth-mint);font-size:12px}
.auth-mark{
  display:flex;
  justify-content:center;
  padding:52px 16px 22px;
}
.auth-mark svg{width:28px;height:28px;display:block}
.auth-page{
  width:min(440px, calc(100% - 32px));
  margin:0 auto 48px;
}
.auth-card{
  background:var(--auth-card);
  border:1px solid var(--auth-line);
  border-radius:var(--auth-radius);
  padding:32px 28px 28px;
}
.auth-card h1{
  margin:0 0 8px;
  font-size:28px;
  font-weight:600;
  letter-spacing:-.02em;
  line-height:1.2;
}
.auth-sub{
  margin:0 0 22px;
  color:var(--auth-muted);
  font-size:14px;
  line-height:1.5;
}
.auth-card form{width:100%}
.auth-field{
  position:relative;
  margin-bottom:12px;
  width:100%;
}
.auth-field input{
  display:block;
  width:100%;
  max-width:100%;
  height:48px;
  border:1px solid var(--auth-line);
  border-radius:12px;
  background:var(--auth-input);
  color:var(--auth-text);
  font:inherit;
  font-size:14px;
  padding:0 14px;
}
.auth-field input::placeholder{color:#6d7482}
.auth-field input:focus{
  outline:2px solid var(--auth-mint);
  outline-offset:1px;
}
.auth-field-password input{padding-inline-end:48px}
.auth-reveal{
  position:absolute;
  inset-inline-end:6px;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:0;
  padding:0;
  border-radius:8px;
  background:transparent;
  color:var(--auth-muted);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.auth-reveal:hover,
.auth-reveal:focus-visible,
.auth-reveal[aria-pressed="true"]{color:var(--auth-text)}
.auth-reveal:focus-visible{outline:2px solid var(--auth-mint);outline-offset:1px}
.auth-reveal svg{width:20px;height:20px;display:block}
.auth-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 18px;
  color:var(--auth-text);
  font-size:14px;
  cursor:pointer;
  user-select:none;
}
.auth-check input{
  appearance:none;
  width:18px;
  height:18px;
  border:1px solid var(--auth-line);
  border-radius:4px;
  background:#141418;
  display:grid;
  place-content:center;
  margin:0;
  flex:none;
}
.auth-check input:checked{
  background:var(--auth-mint);
  border-color:var(--auth-mint);
}
.auth-check input:checked::after{
  content:"";
  width:10px;
  height:6px;
  border-left:2px solid var(--auth-mint-text);
  border-bottom:2px solid var(--auth-mint-text);
  transform:rotate(-45deg) translateY(-1px);
}
.auth-submit,.auth-deny{
  width:100%;
  height:46px;
  border:0;
  border-radius:12px;
  font:inherit;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
}
.auth-submit{
  background:var(--auth-mint);
  color:var(--auth-mint-text);
}
.auth-deny{
  margin-top:10px;
  background:var(--auth-deny);
  color:#c5c9d3;
}
.auth-submit:disabled,.auth-deny:disabled{opacity:.5;cursor:not-allowed}
.auth-err,.auth-hint{font-size:13px;margin:0 0 12px;line-height:1.45}
.auth-err{color:var(--auth-danger)}
.auth-hint{color:var(--auth-mint)}
.hidden{display:none !important}
.auth-rule{
  border:0;
  border-top:1px solid var(--auth-line);
  margin:22px 0 16px;
}
.auth-download{
  margin:0 0 14px;
  color:var(--auth-muted);
  font-size:13px;
}
.auth-stores{display:flex;gap:10px;flex-wrap:wrap}
.store-badge{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:118px;
  height:40px;
  padding:0 12px;
  border-radius:10px;
  background:#111114;
  border:1px solid #2a2b32;
  color:#fff;
  text-decoration:none;
  line-height:1.1;
}
.store-badge small{
  font-size:8px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#c7c7c7;
}
.store-badge strong{font-size:13px;font-weight:700}
.perm-kicker{
  margin:4px 0 12px;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#7d8594;
}
.perm-list{
  list-style:none;
  margin:0 0 8px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.perm-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.4;
  color:var(--auth-text);
}
.perm-list li::before{
  content:"";
  width:16px;
  height:16px;
  margin-top:1px;
  flex:none;
  border-radius:3px;
  background:var(--auth-mint);
  box-shadow:inset 0 0 0 1px var(--auth-mint);
  background-image:linear-gradient(transparent,transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%2306120e' stroke-width='2' d='M2 6.2l2.6 2.6L10 3.4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:10px;
}
@media (max-width:640px){
  .auth-mark{padding-top:72px}
  .auth-card{padding:26px 20px}
}
