/* ===== Auth (Login/Register) — match in-game panels ===== */
*{ box-sizing: border-box; }

:root{
  --bg: #2a2e51;
  --panel1: #0b0f18;
  --panel2: #070a10;
  --border: #1c2433;
  --txt: #d7e3ff;
  --muted: #9fb3d9;
  --gold: #f2c14e;
  --blue: rgba(77,163,255,0.16);
  --blue2: rgba(77,163,255,0.35);
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--txt);

  /* Background image + dark overlay */
  background:
    linear-gradient(
      rgba(10,15,25,0.75),
      rgba(10,15,25,0.85)
    ),
    url("../images/space-bg-4k.jpg"); /* <-- change path */

  background-size: cover;
  background-position: center;
  background-attachment: fixed;   /* subtle parallax feel */
  background-repeat: no-repeat;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(
      circle at center,
      rgba(0,0,0,0.0) 40%,
      rgba(0,0,0,0.55) 100%
    );
}


/* Container like your in-game width */
.auth-shell{
  width: 1000px;
  margin: 18px auto;
}

.auth-topline{
  text-align: center;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

/* Two-column layout like menu + screen, but centered */
.auth-grid{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 12px;
  align-items: start;
}

/* Panel style exactly like your .panel */
.auth-panel{
  background: linear-gradient(180deg, var(--panel1) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.55);
  padding: 16px;
}

.auth-brand h1{
  margin: 0 0 10px 0;
  font-size: 34px;
  color: var(--gold);
  letter-spacing: .6px;
}

.auth-brand p{
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-brand .tip{
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 13px;
}

/* Tabs look like in-game buttons */
.auth-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-tab{
  padding: 10px 12px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all .15s ease;
}

.auth-tab.active{
  background: var(--blue);
  border-color: var(--blue2);
  color: #eaf2ff;
}

.auth-pane{ display:none; }
.auth-pane.active{ display:block; }

.auth-pane h2{
  margin: 6px 0 10px 0;
  color: #eaf2ff;
  font-size: 20px;
}

/* ===== Form styling that works even with messy markup ===== */
form{ margin: 0; }

label{
  display:block;
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}

/* In case your register.php prints text like "Login:" without <label> */
.auth-pane b, .auth-pane strong{
  color: rgba(255,255,255,0.70);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select{
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #eaf2ff;
  outline: none;
  margin: 6px 0 12px 0;
}

input:focus, select:focus{
  border-color: rgba(120, 170, 255, 0.6);
}

/* Buttons match game .btn */
button, input[type="submit"]{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  color:#eaf2ff;
  background: var(--blue);
  border:1px solid var(--blue2);
  cursor:pointer;
  transition: all .15s ease;
}

button:hover, input[type="submit"]:hover{
  background: rgba(77,163,255,0.25);
  border-color: rgba(77,163,255,0.55);
}

/* Group radios/checkboxes nicely */
input[type="radio"], input[type="checkbox"]{
  transform: translateY(1px);
}

.auth-options{
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
}

.auth-option{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 700;
}

/* Messages */
.msg-error{
  padding:10px 12px;
  border-radius:12px;
  background: rgba(160, 40, 40, 0.18);
  border: 1px solid rgba(200, 80, 80, 0.35);
  margin-bottom: 12px;
}
.msg-ok{
  padding:10px 12px;
  border-radius:12px;
  background: rgba(40, 160, 80, 0.15);
  border: 1px solid rgba(80, 200, 120, 0.28);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1040px){
  .auth-shell{ width: 96%; }
}
@media (max-width: 860px){
  .auth-grid{ grid-template-columns: 1fr; }
}
.auth-tabs{ position: relative; z-index: 10; }
.auth-tab{ position: relative; z-index: 11; pointer-events: auto; }

.auth-pane{ position: relative; z-index: 1; }
/* Labels for normal fields only */
.auth-pane form > label{
  display:block;
  margin: 10px 0 6px;
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}

/* Labels inside option rows should be inline */
.auth-option label{
  display: inline;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}
.auth-option{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-option:hover{
  border-color: rgba(77,163,255,0.30);
  background: rgba(77,163,255,0.07);
}

/* keep inputs tight */
.auth-option input[type="radio"],
.auth-option input[type="checkbox"]{
  margin: 0;
  width: 16px;
  height: 16px;
  transform: none; /* undo your translateY for these rows */
}
/* ===== Full-width hero above both panels ===== */
.auth-hero{
  position: relative;
  width: 100%;
  height: 667px;   /* was 220px */              /* adjust: 180–280 */
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid var(--border);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.55);

  /* Placeholder "image-like" background */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.70)),
    radial-gradient(1200px 300px at 20% 20%, rgba(77,163,255,0.30), transparent 60%),
    radial-gradient(900px 240px at 80% 30%, rgba(242,193,78,0.14), transparent 55%),
    rgba(255,255,255,0.03);

  margin: 0 0 12px 0;            /* space before the two panels */
}

/* Game name bottom-left */
.auth-hero-title{
  position: absolute;
  left: 14px;
  bottom: 14px;

  padding: 8px 12px;
  border-radius: 14px;

  font-weight: 900;
  font-size: 20px;
  letter-spacing: .6px;
  color: #eaf2ff;

  background: rgba(5, 8, 14, 0.62);
  border: 1px solid rgba(77,163,255,0.25);
  box-shadow: 0 14px 40px rgba(0,0,0,0.40);
}

/* Optional: small glow line like sci-fi HUD */
.auth-hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background: linear-gradient(90deg, transparent, rgba(77,163,255,0.55), transparent);
  opacity:.65;
}
.auth-hero{
  background:
    url("../images/auth-hero.jpg");
  background-size: cover;
  background-position: center;
}
