:root {
  --bg: #050b14;
  --panel: #0c1c31;
  --panel-2: #10243d;
  --line: rgba(153, 180, 214, .2);
  --gold: #d7b36a;
  --text: #edf4ff;
  --muted: #9fb1cc;
  --green: #64d38a;
  --red: #ff7b86;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(215,179,106,.16), transparent 34%), linear-gradient(135deg, var(--bg), #07101d 52%, #03070d);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.auth-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  margin-bottom: 24px;
}

.brand img { width: 150px; max-height: 58px; object-fit: contain; }

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14,32,56,.96), rgba(7,17,31,.92));
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 18px;
}

.narrow { width: min(560px, 100%); margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

h1, h2, h3 { margin: 0 0 10px; }
p { color: var(--muted); line-height: 1.65; }

label { display: block; margin: 14px 0 6px; color: #dce8fb; font-weight: 800; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  font: inherit;
  outline: none;
}

input[type="checkbox"] { width: auto; }

.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; color: var(--muted); }

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.45;
  color: #d7e7ff;
}

.legal-check input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.legal-check span {
  display: inline;
}

.legal-check a {
  color: #f2c96d;
  text-decoration: none;
  font-weight: 800;
}

.legal-check a:hover {
  color: #ffd978;
  text-decoration: underline;
}

.legal-check a:visited {
  color: #f2c96d;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f4d891, #c59a43);
  color: #151004;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.045); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.auth-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-decoration: none;
}

.lang-pill:hover {
  color: #f8e7bf;
  background: rgba(215,179,106,.10);
}

.lang-pill.active {
  color: #151004;
  background: linear-gradient(135deg, #f4d891, #c59a43);
}

.flag-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: #f4f6fb;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 18px rgba(0,0,0,.26);
}

.message { border-radius: 16px; padding: 12px 14px; margin: 14px 0; border: 1px solid var(--line); color: var(--text); }
.message.error { border-color: rgba(255,123,134,.35); background: rgba(255,123,134,.12); color: #ffd2d6; }
.message.success { border-color: rgba(100,211,138,.35); background: rgba(100,211,138,.11); color: #d7ffe4; }
.message.info { border-color: rgba(215,179,106,.30); background: rgba(215,179,106,.10); color: #f2dba7; }

table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 12px; border-bottom: 1px solid rgba(153,180,214,.14); text-align: left; }
th { color: #d7e5fb; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
.pill { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-weight: 800; font-size: .78rem; }
.pill.active { background: rgba(100,211,138,.12); color: var(--green); }
.pill.pending, .pill.expired { background: rgba(215,179,106,.12); color: var(--gold); }
.pill.suspended, .pill.cancelled { background: rgba(255,123,134,.12); color: var(--red); }

@media (max-width: 760px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .brand { flex-direction: column; align-items: flex-start; }
}
