body.auth *,
body.auth *::before,
body.auth *::after { box-sizing: border-box; }
body.auth {
  min-height: 100vh;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}
body.auth ::selection { background: rgba(192, 38, 255, 0.3); color: #fff; }
body.auth a { color: inherit; text-decoration: none; }
body.auth a:hover { color: #fff; }

body.auth::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.auth::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 500px; height: 500px;
  left: -10%; top: 20%;
  background: rgba(192, 38, 255, 0.1);
  filter: blur(150px);
  border-radius: 999px;
}

.auth-split {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
}
.auth-left {
  display: flex;
  width: 50%;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  border-right: 1px solid rgba(255,255,255,.05);
  background: rgba(5,5,5,.5);
  backdrop-filter: blur(8px);
  position: relative;
}
.auth-split::after {
  content: "";
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.1);
  filter: blur(150px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.auth-logo .auth-word { color: #fff; }
.auth-logo .brand-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #c026ff;
  box-shadow: 0 0 15px rgba(192, 38, 255, 0.4);
}
.auth-logo-m { display: inline-flex; position: absolute; top: 24px; left: 24px; }
.auth-pitch { max-width: 28rem; margin-top: 72px; position: relative; z-index: 1; }
.auth-pitch h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.auth-pitch h1 span {
  color: transparent;
  background: linear-gradient(to right, #e879f9, #c026ff);
  -webkit-background-clip: text;
  background-clip: text;
}
.auth-pitch p {
  color: rgba(255,255,255,.6);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 36px;
}
.auth-feats { display: flex; flex-direction: column; gap: 16px; }
.auth-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.auth-feat .ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ico-orange { background: rgba(192,38,255,.12); border: 1px solid rgba(192,38,255,.28); color: #e879f9; }
.ico-blue { background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.28); color: #22d3ee; }
.auth-feat strong { display: block; font-size: 14px; }
.auth-feat small { display: block; color: rgba(255,255,255,.5); font-size: 12px; margin-top: 2px; }
.auth-copy { color: rgba(255,255,255,.4); font-size: 13px; position: relative; z-index: 1; }
.auth-copy a { color: rgba(255,255,255,.55); }
.auth-copy a:hover { color: #fff; }

.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow: 0 25px 50px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}
.auth-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(249,115,22,.5), transparent);
}
.auth-card-head { text-align: center; margin-bottom: 28px; }
.auth-card-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 8px; }
.auth-card-head p { color: rgba(255,255,255,.5); font-size: 14px; margin: 0; }

.auth-field {
  position: relative;
  margin-bottom: 14px;
}
.auth-field > svg {
  position: absolute;
  left: 16px; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  color: rgba(255,255,255,.3);
  pointer-events: none;
}
.auth-field input {
  width: 100%;
  background: #050505;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 14px 44px 14px 44px;
}
.auth-field input:focus {
  outline: none;
  border-color: rgba(249,115,22,.5);
  background: rgba(255,255,255,.02);
}
.auth-field input.auth-code {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-field input.auth-code::placeholder {
  text-transform: none;
  letter-spacing: 0;
}
.auth-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0; background: transparent;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.auth-eye svg { width: 16px; height: 16px; }
.auth-eye:hover { color: rgba(255,255,255,.6); }
.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
  font-size: 13px;
}
.auth-forgot a { color: rgba(255,255,255,.5); font-weight: 600; }
.auth-forgot a:hover { color: #e879f9; }
.auth-forgot a:focus-visible,
.auth-submit:focus-visible,
.auth-bot:focus-visible,
.auth-field input:focus-visible {
  outline: 2px solid #e879f9;
  outline-offset: 2px;
}

.auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}
.auth-submit:hover { background: rgba(255,255,255,.9); }

.auth-msg { min-height: 1.2em; margin: 12px 0 0; font-size: 13px; text-align: center; }
.auth-msg.is-err { color: #f87171; }
.auth-msg.is-ok { color: #4ade80; }
.auth-switch { text-align: center; margin: 18px 0 0; color: rgba(255,255,255,.5); font-size: 14px; }
.auth-switch a { color: #e879f9; font-weight: 700; }
.auth-switch a:hover { color: #22d3ee; }
.auth-legal {
  max-width: 420px;
  margin: 20px 0 0;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
.auth-legal a { text-decoration: underline; color: rgba(255,255,255,.55); }
.auth-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(192, 38, 255, 0.12);
  border: 1px solid rgba(192, 38, 255, 0.35);
  color: #e879f9;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.auth-bot:hover { color: #fff; background: rgba(192, 38, 255, 0.22); }

.auth-split { overflow-x: hidden; }

@media (max-width: 1023px) {
  .auth-split { flex-direction: column; min-height: 0; }
  .auth-left {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 20px 20px 24px;
  }
  .auth-pitch { margin-top: 20px; max-width: none; }
  .auth-pitch h1 { font-size: clamp(26px, 8vw, 40px); }
  .auth-pitch p { font-size: 16px; margin-bottom: 20px; }
  .auth-copy { margin-top: 20px; }
  .auth-logo-m { display: none; }
  .auth-right {
    padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }
  .auth-card {
    padding: 24px 18px 22px;
    border-radius: 16px;
  }
  .auth-field input { font-size: 16px; }
  .auth-split::after { width: 280px; height: 280px; right: -20%; }
}
@media (min-width: 1024px) {
  .auth-logo-m { display: none; }
  .auth-right { padding: 24px; }
}
