/* =================================================================
   index.css — Armada Login / Landing page
   Palette: same dark navy as char_panel / staff_panel / game.css
   ================================================================= */

* { box-sizing: border-box; }
html, body { height: 100%; }

body.index_body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #05080f;
  color: #c8d8e8;
}

/* ── Layout ── */
.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 18px auto 28px;
}

.card {
  background: #090e16;
  border: 1px solid #1e2e40;
  border-radius: 14px;
  overflow: hidden;
}

/* ── Hero ── */
.hero.hero--in-card {
  position: relative;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  aspect-ratio: 16 / 4.8;
  min-height: 120px;
  max-height: 30vh;  /* never taller than 30% of viewport — logo can't crowd the form */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.75)),
    url("") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 18px);
  z-index: 2;
}

.hero-title h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 1;
  color: #c8d8e8;
  text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.7);
}

.hero-title img {
  width: min(720px, 86%);
  height: auto;
  display: block;
  max-height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.7));
}

/* ── Grid ── */
.grid {
  border-top: 1px solid #1a2a3a;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .panel-left { border-right: 0; border-bottom: 1px solid #1a2a3a; }
  .panel { min-height: auto; }
}

@media (max-width: 420px) {
  /* On tiny screens keep the hero compact — don't let it push the form off screen */
  .hero.hero--in-card { aspect-ratio: 16 / 5; min-height: 100px; max-height: 22vh; }
}

/* ── Panels ── */
.panel {
  padding: clamp(18px, 2.5vw, 28px);
  min-height: 340px;
}

.panel-left { border-right: 1px solid #1a2a3a; }

.panel-right {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(68,170,255,.03), transparent 60%);
}

.info-box {
  background: rgba(0,0,0,.35);
  border: 1px solid #1a2a3a;
  border-radius: 10px;
  padding: clamp(16px, 2vw, 24px);
  max-width: 560px;
  color: #99aabb;
  line-height: 1.6;
}

/* ── Form ── */
.form { max-width: 360px; }

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 14px;
  color: #778899;
  letter-spacing: .04em;
}

input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 6px;
  border: 1px solid #1a2a3a;
  background: #060b12;
  color: #c8d8e8;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: #4af; }

.muted {
  margin: 14px 0 0;
  color: #556677;
  font-size: 13px;
}

a { color: #4af; text-decoration: none; }
a:hover { text-decoration: underline; color: #88ccff; }

.index_button {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #2a5a8a;
  border-radius: 6px;
  background: #1a3a5a;
  color: #c8d8e8;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.index_button:hover { background: #1e4a70; border-color: #4af; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid #1a2a3a;
  padding: 14px 18px;
  text-align: center;
  color: #334455;
  font-size: 13px;
}
