:root {
  --bg: #030913;
  --panel: rgba(8, 13, 22, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #a9b4c7;
  --blue: #2aa8ff;
  --orange: #ff7a18;
  --line: rgba(255, 255, 255, 0.12);
  --discord: linear-gradient(135deg, #5d6dfd 0%, #4b57ca 100%);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 20% 15%, rgba(42, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 24, 0.14), transparent 30%),
    #030913;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 12, 26, 0.82) 0%, rgba(2, 12, 28, 0.65) 34%, rgba(18, 9, 11, 0.48) 100%),
    url("images/emberstone-hero-bg.png") center center / cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.50));
  z-index: -1;
}

.site-shell {
  min-height: 100vh;
  width: min(1560px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-size: 14px;
}
.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #19d37d;
  box-shadow: 0 0 12px rgba(25, 211, 125, 0.7);
}

.login-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 36px 0 28px;
}

.hero-panel {
  min-height: 760px;
  display: flex;
  align-items: stretch;
}
.hero-content {
  width: 100%;
  padding: 44px 34px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-logo-wrap { max-width: 690px; }
.hero-logo {
  width: 100%;
  max-width: 590px;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.44));
}
.eyebrow {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.eyebrow span,
.tagline span { color: var(--blue); }
.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 4.3vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero-text {
  max-width: 710px;
  color: #dae5f7;
  font-size: 22px;
  line-height: 1.6;
  margin: 16px 0 24px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 820px;
}
.feature-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(6, 14, 26, 0.64);
  border: 1px solid rgba(76, 118, 167, 0.32);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.tagline {
  margin-top: 34px;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.login-card-shell {
  display: flex;
  justify-content: center;
}
.login-card {
  width: min(100%, 670px);
  padding: 42px 42px 32px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(18, 17, 28, 0.78), rgba(8, 10, 17, 0.84));
  border: 1px solid rgba(255, 136, 34, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  text-align: center;
}
.login-card-logo {
  width: 235px;
  max-width: 80%;
  display: block;
  margin: 0 auto 18px;
}
.login-card h2 {
  margin: 0;
  font-size: clamp(36px, 3.1vw, 54px);
  line-height: 1.06;
}
.subtitle {
  margin: 10px 0 24px;
  color: #d7dee8;
  font-size: 22px;
}
.discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  border-radius: 18px;
  background: var(--discord);
  color: white;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(54, 74, 208, 0.38);
}
.discord-icon {
  font-size: 30px;
  font-weight: 900;
}
.security-line,
.card-footer-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.security-line { margin: 18px 0 16px; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 18px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.notice-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(112, 146, 199, 0.34);
  background: rgba(10, 16, 28, 0.68);
  color: #dce7ff;
  font-size: 18px;
  line-height: 1.55;
  text-align: left;
}
.alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  font-weight: 700;
}
.alert.error {
  background: rgba(127, 29, 29, 0.26);
  border: 1px solid rgba(252, 165, 165, 0.35);
  color: #fecaca;
}
.site-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 10px 24px;
  color: rgba(255,255,255,0.74);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 1180px) {
  .login-layout { grid-template-columns: 1fr; }
  .hero-panel { min-height: auto; }
  .hero-content { padding-top: 12px; }
  .feature-grid { max-width: none; }
}

@media (max-width: 760px) {
  .site-shell { width: min(100%, calc(100% - 18px)); }
  .topbar, .topnav { flex-wrap: wrap; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 40px; }
  .hero-text, .feature-card p, .notice-card, .security-line, .card-footer-copy { font-size: 16px; }
  .login-card { padding: 24px; }
  .login-card h2 { font-size: 34px; }
  .subtitle { font-size: 18px; }
  .discord-button { font-size: 20px; min-height: 60px; }
}


a {
  color: #8fd2ff;
}

.feature-card {
  border: 1px solid rgba(78, 137, 216, 0.28);
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.78), rgba(5, 12, 21, 0.70));
}

.login-card {
  border: 1px solid rgba(255, 138, 30, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(42,168,255,0.10) inset;
}

.discord-button {
  background: linear-gradient(90deg, #1c7dff 0%, #2aa8ff 45%, #ff8a1e 100%);
}

.notice-card {
  border: 1px solid rgba(88, 145, 220, 0.30);
}
