:root {
  --bg: #071018;
  --panel: #0f1c28;
  --border: #264055;
  --text: #e8f2f8;
  --sub: #9eb5c4;
  --accent: #5eb8ff;
  --accent2: #ffb454;
  --ok: #5fd49a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 system-ui, Segoe UI, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 15% 0%, rgba(94,184,255,.14), transparent 60%),
    radial-gradient(700px 420px at 85% 10%, rgba(255,180,84,.10), transparent 55%),
    var(--bg);
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.topRight { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.langPick { display: inline-flex; align-items: center; gap: 8px; }
.langPickLabel { font-size: 12px; color: var(--sub); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.langSelect {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 132px;
}
.logo { display: flex; align-items: center; }
.logo img {
  height: clamp(80px, 10vw, 108px);
  width: auto;
  max-width: min(380px, 50vw);
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
}
.authPanel {
  max-width: 440px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15,28,40,.92);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.authBrand {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: #fff;
}
.authBrand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: none;
}
.authBody { padding: 22px; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a, .btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
}
.nav a { color: var(--text); border: 1px solid var(--border); background: rgba(255,255,255,.03); }
.btn { display: inline-block; border: 0; background: linear-gradient(135deg, #5eb8ff, #3a8fd1); color: #041018; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: linear-gradient(135deg, #ff6b6b, #c92a2a); color: #fff; }
.btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.panel {
  background: rgba(15,28,40,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.hero h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.hero p { margin: 0; color: var(--sub); max-width: 56ch; }
.heroVisual {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  background: #fff;
}
.heroVisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  pointer-events: none;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.feature b { display: block; margin-bottom: 6px; color: var(--accent); }
.feature p { margin: 0; color: var(--sub); font-size: 14px; }

.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(95,212,154,.28);
  background: rgba(95,212,154,.08);
  color: var(--ok);
  font-size: 14px;
}
.muted { color: var(--sub); font-size: 13px; }
footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--sub); font-size: 13px; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; }
.form label span { font-size: 13px; font-weight: 700; color: var(--sub); }
.form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
.form input:focus {
  outline: 2px solid rgba(94,184,255,.35);
  border-color: var(--accent);
}
.alert {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.alert.error {
  border: 1px solid rgba(255,120,120,.35);
  background: rgba(255,80,80,.10);
  color: #ffb4b4;
}
.alert.ok {
  border: 1px solid rgba(95,212,154,.28);
  background: rgba(95,212,154,.08);
  color: var(--ok);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .heroVisual { max-width: none; justify-self: stretch; }
  .top { flex-direction: column; align-items: flex-start; }
  .topRight { width: 100%; justify-content: flex-start; }
  .logo img { height: 68px; max-width: 280px; }
}
