/* ===== RESET & VARS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Brand palette: Black & Gold Geometric — dark polka-dot canvas, gold diagonal chevrons ---- */
  --black:   #0A0A0A;
  --panel:   rgba(18, 16, 12, 0.72);
  --panel-hi: rgba(26, 22, 14, 0.85);

  --gold:        #F0C24B;
  --gold-bright: #FFE199;
  --gold-deep:   #B8892A;

  --text:  #F5F0E0;
  --muted: #A89B78;
  --dim:   #6B6250;

  --border:      rgba(240, 194, 75, 0.4);
  --border-soft: rgba(240, 194, 75, 0.18);

  --grad-gold: linear-gradient(135deg, #FFE199 0%, #F0C24B 45%, #B8892A 100%);
  --font-display: 'Prompt', sans-serif;
  --container-sm: 420px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', sans-serif;
  background-color: #060606;
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 88px;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ===== BACKGROUND LAYER ===== */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 55% at 50% 42%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.8) 100%);
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(10, 10, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 0 16px rgba(240,194,75,0.25);
}
.lang-btn svg { width: 100%; height: 100%; border-radius: 50%; }

/* ===== CENTER STAGE ===== */
.center-stage {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 2;
}

.login-card {
  width: 100%;
  max-width: var(--container-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  text-align: center;
}

.card-logo {
  width: min(58vw, 220px);
  height: auto;
  margin: 0 auto 1.5rem;
}

.login-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.6rem;
}

.login-card form { width: 100%; }
.field {
  width: 100%;
  margin-bottom: 0.9rem;
  text-align: left;
}
.field-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}
.field-input:focus-within { border-color: var(--gold); }
.field-input svg { flex-shrink: 0; color: var(--gold); width: 17px; height: 17px; }
.field-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: 'Prompt', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
}
.field-input input::placeholder { color: var(--dim); }

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--grad-gold);
  color: #2B1E00;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 10px;
  margin-top: 0.6rem;
  box-shadow: 0 10px 26px rgba(240,194,75,0.3);
  transition: transform 0.2s ease;
}
.btn-login:hover:not(:disabled) { transform: translateY(-2px); }
.btn-login svg { width: 18px; height: 18px; }
.btn-login:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-forgot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-top: 0.55rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-forgot:hover { border-color: var(--gold); color: var(--gold-bright); }

.card-footer {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--muted);
}
.card-footer .register-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.card-line .ico-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: #06C755; color: #fff; font-size: 0.58rem; font-weight: 800;
  border-radius: 3px; padding: 1px 6px; line-height: 1.3;
}

/* ===== ABOUT TEXT ===== */
.about-text {
  position: relative;
  z-index: 2;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.about-text p {
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-sm);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 9, 6, 0.9);
  border-top: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--dim);
  padding: 0.3rem 0.2rem;
  background: none;
  border: none;
}
.bn-item svg { width: 20px; height: 20px; color: var(--dim); }
.bn-item.active,
.bn-item:hover { color: var(--gold-bright); }
.bn-item.active svg,
.bn-item:hover svg { color: var(--gold-bright); }
.bn-item .ico-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: #06C755; color: #fff; font-size: 0.54rem; font-weight: 800;
  border-radius: 3px; padding: 1px 5px; line-height: 1.3;
}

/* ===== HOW-TO MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 6, 6, 0.82);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  width: 100%;
  max-width: var(--container-sm);
  background: var(--panel-hi);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(24px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.modal-head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(240,194,75,0.12); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.modal-steps { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.modal-steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-gold); color: #2B1E00; font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-steps p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.modal-steps strong { color: var(--gold-bright); }
