:root {
  --orange: #ff7a00;
  --orange-dark: #d95f00;
  --black: #060606;
  --dark: #111111;
  --card: rgba(15, 15, 15, 0.94);
  --white: #ffffff;
  --muted: #cfcfcf;
  --border: rgba(255, 122, 0, 0.38);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top, rgba(255, 122, 0, 0.22), transparent 34%),
    linear-gradient(135deg, #000000 0%, #111111 45%, #1c0f04 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 75%);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand { text-align: center; }

.logo {
  width: min(290px, 88%);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.6));
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 6vw, 2.55rem);
  line-height: 1.04;
}

.subtitle {
  margin: 10px 0 26px;
  color: var(--muted);
  line-height: 1.45;
}

.login-form { display: grid; gap: 10px; }

label {
  color: #f7f7f7;
  font-weight: 700;
  font-size: 0.94rem;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #ffffff;
  color: #111111;
  font-size: 1rem;
  outline: none;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.18);
}

.terms-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 8px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.terms-check input { margin-top: 2px; accent-color: var(--orange); }

a { color: var(--orange); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

.error-msg {
  min-height: 19px;
  margin: 0;
  color: #ffb17a;
  font-size: 0.9rem;
}

button, .button-link {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.23);
}

button:hover, .button-link:hover { filter: brightness(1.07); text-decoration: none; }

.quick-links {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.terms-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 34px 16px;
}

.terms-card {
  width: 100%;
  max-width: 860px;
  padding: 34px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  line-height: 1.62;
}

.terms-logo { width: 230px; max-width: 80%; display: block; margin: 0 auto 18px; }
.terms-card h1 { text-align: center; margin-bottom: 8px; }
.updated { text-align: center; color: var(--muted); margin-bottom: 28px; }
.terms-card h2 { color: var(--orange); margin-top: 24px; }
.terms-card p { color: #eeeeee; }
.terms-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.button-link { display: inline-block; text-align: center; }
.button-link.secondary { background: #2a2a2a; box-shadow: none; }

@media (max-width: 560px) {
  .login-card, .terms-card { padding: 24px 18px; border-radius: 22px; }
  .terms-actions { grid-template-columns: 1fr; }
}
