* { margin:0; padding:0; box-sizing:border-box; }

body {
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  background:#0a0a0a;
  font-family:"Segoe UI", system-ui, sans-serif;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(80,20,20,.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(40,60,30,.2), transparent 40%);
}

/* ── ГЛАВНЫЙ ФРЕЙМ 900×700 ── */
.frame {
  width:900px; height:700px;
  background:#111;
  border:1px solid #2a2a2a;
  border-radius:8px;
  overflow:hidden;
  position:relative;
  box-shadow:0 0 60px rgba(0,0,0,.9), inset 0 0 120px rgba(0,0,0,.6);
}

/* ── ЭКРАН ВХОДА ── */
.auth-screen {
  width:100%; height:100%;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:32px;
  background:
    linear-gradient(rgba(10,10,10,.7), rgba(10,10,10,.85)),
    repeating-linear-gradient(45deg, #141414 0 2px, #101010 2px 4px);
}

.logo { text-align:center; }
.logo h1 {
  font-size:56px; letter-spacing:8px; font-weight:900;
  color:#c8402f;
  text-shadow:0 0 20px rgba(200,64,47,.5), 2px 2px 0 #000;
}
.logo .tagline {
  color:#6a6a6a; letter-spacing:4px; font-size:14px;
  margin-top:6px; text-transform:uppercase;
}

/* ── КАРТОЧКА АВТОРИЗАЦИИ ── */
.auth-box {
  width:340px;
  background:rgba(20,20,20,.9);
  border:1px solid #2e2e2e;
  border-radius:10px;
  padding:26px;
  display:flex; flex-direction:column; gap:14px;
}

.tabs { display:flex; gap:8px; margin-bottom:6px; }
.tab {
  flex:1; padding:10px; cursor:pointer;
  background:#1a1a1a; color:#888;
  border:1px solid #2e2e2e; border-radius:6px;
  font-size:14px; transition:.15s;
}
.tab.active { background:#c8402f; color:#fff; border-color:#c8402f; }

.auth-box input {
  padding:12px 14px;
  background:#0d0d0d; color:#e0e0e0;
  border:1px solid #2e2e2e; border-radius:6px;
  font-size:15px; outline:none; transition:.15s;
}
.auth-box input:focus { border-color:#c8402f; }

.btn-primary {
  padding:13px; cursor:pointer;
  background:#c8402f; color:#fff;
  border:none; border-radius:6px;
  font-size:15px; font-weight:600;
  transition:.15s;
}
.btn-primary:hover { background:#e04a37; }
.btn-primary:disabled { opacity:.5; cursor:default; }

.err { color:#ff6b5b; font-size:13px; min-height:16px; text-align:center; }

.footer-note { color:#555; font-size:13px; letter-spacing:1px; }

.rules-row {
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:#8aa090; margin:10px 0;
  cursor:pointer;
}
.rules-row a { color:#6fe08a; text-decoration:none; }
.rules-row a:hover { text-decoration:underline; }
.rules-row input { width:16px; height:16px; accent-color:#3ca050; }

.legal-links{margin-top:10px;text-align:center;font-size:12px;color:#5a6a55}
.legal-links a{color:#7a9a80;text-decoration:none}
.legal-links a:hover{color:#6fe08a}
.legal-links span{margin:0 6px;opacity:.5}
