:root {
  color-scheme: dark;
  --bg: #0b1116;
  --panel: rgba(15, 24, 31, 0.88);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef3f6;
  --muted: #9eb0bb;
  --accent: #d7b56d;
  --accent-strong: #f0ca7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(215, 181, 109, 0.14), transparent 35%),
    linear-gradient(160deg, #080d11 0%, #111a21 55%, #0a0f13 100%);
}

.shell {
  min-height: 100vh;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 24px 0;
  background:
    linear-gradient(rgba(11, 17, 22, 0.72), rgba(11, 17, 22, 0.72)),
    url("assets/background.png") center / cover no-repeat;
}

.card {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.policy-card {
  width: min(100%, 720px);
}

.login-card {
  background:
    linear-gradient(rgba(11, 17, 22, 0.72), rgba(11, 17, 22, 0.72)),
    url("assets/background.png") center / cover no-repeat;
}

.hero {
  text-align: center;
}

.brand-mark img,
.mini-brand img {
  display: block;
  max-width: 100%;
}

.brand-mark {
  width: 124px;
  margin: 0 auto 18px;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mini-brand img {
  width: 36px;
  height: 36px;
}

.mini-brand span,
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.actions {
  margin-top: 24px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #1a1408;
}

.button-block {
  width: 100%;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-strong);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.policy-text {
  margin-top: 18px;
}

.policy-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.policy-text p + p {
  margin-top: 14px;
}

.site-footer {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 15, 19, 0.58), rgba(7, 11, 14, 0.94)),
    radial-gradient(circle at top, rgba(215, 181, 109, 0.08), transparent 36%);
  backdrop-filter: blur(12px);
}

.footer-inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex: 0 0 auto;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 202, 122, 0.4);
  background: rgba(240, 202, 122, 0.1);
  color: var(--accent-strong);
}

@media (max-width: 520px) {
  .card {
    padding: 22px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 96px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}