.signin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000;
}
.signin-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(880px 460px at 50% -40px, rgba(248, 176, 16, 0.16), transparent 58%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 18%, #000 12%, transparent 68%);
}
.signin-top,
.signin-stage { position: relative; z-index: 1; }
.signin-top {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.signin-home {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}
.signin-home:hover { color: var(--text); }
.signin-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 48px;
}
.signin-card {
  width: min(400px, 100%);
  padding: 28px 28px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 12, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.signin-card h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.signin-lead {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 22px;
}
.signin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 20px 0 4px;
  padding: 4px;
  border-radius: 10px;
  background: #161616;
}
.signin-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-mute);
  font-weight: 600;
  cursor: pointer;
}
.signin-tabs button[aria-selected="true"] {
  background: #222;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.signin-back { margin-top: 16px; }
.signin-form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 20px;
}
.field > label,
.field-head label {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 20px;
}
.signin-form input {
  height: 40px;
  width: 100%;
  background: #0a0a0a;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
}
.signin-form input::placeholder { color: var(--text-mute); }
.signin-form input:focus {
  border-color: rgba(248, 176, 16, 0.85);
  outline: none;
}
.password-control { position: relative; }
.password-control input { padding-right: 64px; }
.password-control button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
}
.password-control button:hover { color: var(--text); }
.signin-form .auth-submit {
  width: 100%;
  height: 40px;
  min-height: 40px;
  margin-top: 4px;
  border-radius: 8px;
}
.auth-alert, .auth-ok {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 22px;
  margin: 16px 0 0;
}
.auth-alert { background: rgba(246, 70, 93, 0.1); border: 1px solid rgba(246, 70, 93, 0.4); color: #ffb4be; }
.auth-ok { background: rgba(31, 191, 117, 0.1); border: 1px solid rgba(31, 191, 117, 0.35); color: #b7f3d4; }
.signin-card .google-slot { min-height: 40px; margin-top: 18px; }
.signin-card .google-btn {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #1f1f1f;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.signin-card .google-btn:hover { background: #f8f9fa; }
.signin-card .google-btn[hidden] { display: none; }
.signin-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--text-mute);
  font-size: 12px;
}
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }
.captcha-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.signin-form .captcha-row input { height: 56px; }
.captcha-image {
  width: 168px;
  height: 56px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
  overflow: hidden;
  cursor: pointer;
}
.captcha-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.signin-card .text-btn,
.captcha-block .text-btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  min-height: 20px;
  padding: 0;
  font-size: 13px;
}
.signin-card .text-btn:hover,
.captcha-block .text-btn:hover { color: var(--gold); }
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-boxes input { text-align: center; font-size: 20px; padding: 0; }
.hint { color: var(--text-mute); font-size: 13px; line-height: 20px; margin: 0; }
.hint a { color: var(--gold); }
.signin-legal { margin: 16px 0 0; text-align: center; }
.signin-legal a { color: var(--text-mute); font-size: 13px; text-decoration: none; }
.signin-legal a:hover { color: var(--text); }
.signin-fine {
  width: min(400px, 100%);
  margin: 16px 0 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
  line-height: 18px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-form label { display: grid; gap: 6px; color: var(--text-dim); font-size: 14px; }
.auth-form input {
  height: 40px;
  width: 100%;
  background: var(--bg-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}
@media (max-width: 720px), (max-height: 760px) {
  .signin-stage { justify-content: flex-start; padding-top: 8px; }
}
@media (max-width: 480px) {
  .signin-top { padding: 0 16px; }
  .signin-stage { padding: 4px 16px 32px; }
  .signin-card { padding: 22px 16px 16px; }
  .captcha-row { grid-template-columns: 1fr; }
  .captcha-image { width: 100%; height: 48px; }
  .code-boxes { gap: 6px; }
}
