:root {
  --bg: #04271f;
  --bg-deep: #021a15;
  --panel: #0a2f27;
  --field: #07241e;
  --line: #1b4a3f;
  --teal: #1a7a62;
  --teal-hover: #218f74;
  --gold: #d8b04a;
  --gold-dark: #5d5a0e;
  --text: #e8f3ef;
  --muted: #8fb0a6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Page background ---------- */
.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background: var(--bg) url("background-casino.png") center center / cover no-repeat;
}

/* ---------- Form card ---------- */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.card h1 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
}

.intro {
  margin: 6px 0 26px;
  color: var(--muted);
  font-size: .95rem;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder { color: #5f8478; }

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 176, 74, .22);
}

/* ---------- Submit: matches the "Join" button ---------- */
.submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  color: #f3e7a6;
  background: var(--gold-dark);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.submit:hover { background: #75710f; }
.submit:active { transform: translateY(1px); }
.submit:focus-visible {
  outline: 3px solid rgba(216, 176, 74, .45);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 36px 20px 28px;
  text-align: center;
}

.footer-inner { max-width: 900px; margin: 0 auto; }

.brand {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .5px;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  transition: color .15s;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--gold); }

.notice {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  font-size: .85rem;
  color: var(--text);
  background: var(--teal);
  border-radius: 8px;
}

.copy { font-size: .85rem; color: var(--muted); }

@media (max-width: 480px) {
  .card { padding: 28px 20px; }
}


/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: linear-gradient(90deg, #025340 0%, #02493a 50%, #025540 100%);
  border-bottom: 1px solid rgba(0, 0, 0, .25);
  overflow: hidden;
}

.header-scene {
  position: absolute;
  inset: 0;
  background: url("images/header-scene.png") center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1618px;
  margin: 0 auto;
  padding: 8px 28px;
  min-height: 74px;
}

.header-left, .header-right { display: flex; align-items: center; gap: 16px; }

.logo img { display: block; height: 58px; width: auto; }

.divider { width: 1px; height: 48px; background: rgba(255, 255, 255, .12); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #0a2b25;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.lang:hover { background: #0e3830; }
.flag { width: 28px; height: 28px; }
.caret { width: 10px; height: 6px; }

.btn {
  display: inline-block;
  padding: 11px 26px;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 8px;
  transition: filter .15s;
}

.btn:hover { filter: brightness(1.15); }

.btn-join {
  color: #f3e7a6;
  background: var(--gold-dark);
  border: 1.5px solid var(--gold);
}

.btn-login {
  color: #fff;
  background: var(--teal);
  border: 1.5px solid #2a8f77;
}

@media (max-width: 600px) {
  .header-inner { padding: 8px 12px; gap: 8px; }
  .header-left, .header-right { gap: 8px; }
  .logo img { height: 44px; }
  .divider { display: none; }
  .lang { padding: 8px 10px; }
  .lang span { display: none; }
  .btn { padding: 9px 16px; font-size: .95rem; }
}
/* Submission feedback */
.submit:disabled { opacity: .75; cursor: wait; }
.loader { display: inline-block; width: 17px; height: 17px; margin-right: 9px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: middle; animation: form-spin .7s linear infinite; }
.loader[hidden] { display: none; }
#form-message { padding: 12px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.form-success { color: #155e3c; background: #e1f5e9; }
.form-error { color: #9b2430; background: #ffe8ea; }
@keyframes form-spin { to { transform: rotate(360deg); } }
