body {
  background-image: url('/images/login-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
}

/* ============================================================
   Card
   ============================================================ */
.card-glass {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.fp-card {
  max-width: 520px;
  width: 100%;
  animation: fpFadeIn .45s ease-out;
}
@keyframes fpFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fp-key-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.25), rgba(0, 176, 155, 0.25));
  border: 1px solid rgba(0, 196, 255, 0.4);
  color: #00e3ff;
  font-size: 1.6rem;
  box-shadow: 0 0 24px rgba(0, 196, 255, 0.25);
}

.text-header {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}
.text-muted-light {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* ============================================================
   Tabs (recovery method picker) — segmented control style
   ============================================================ */
.fp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
/* Let the <li> disappear from the grid layout so each .nav-link occupies
   one equal-width grid cell directly. */
.fp-tabs .nav-item {
  display: contents;
}
.fp-tabs .nav-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  border-radius: 10px;
  padding: 9px 14px;
  transition: all .25s ease;
  border: none;
  background: transparent;
  white-space: nowrap;
  font-size: 0.92rem;
}
.fp-tabs .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.fp-tabs .nav-link.active {
  background: linear-gradient(135deg, #00c4ff, #0099cc);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 196, 255, 0.4);
}

/* ============================================================
   Step indicator
   ============================================================ */
.fp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  transition: opacity .3s ease;
}
.fp-step.active {
  opacity: 1;
}
.fp-step.done {
  opacity: 1;
}
.fp-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .3s ease;
}
.fp-step.active .fp-step-dot {
  background: linear-gradient(135deg, #00c4ff, #0099cc);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 196, 255, 0.5);
}
.fp-step.done .fp-step-dot {
  background: linear-gradient(135deg, #00b09b, #96c93d);
  border-color: transparent;
  color: #fff;
}
.fp-step-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}
.fp-step-line {
  flex: 0 0 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 22px;
}

/* ============================================================
   Form controls
   ============================================================ */
.form-control {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 12px;
  transition: 0.3s;
  padding: 0.65rem 0.95rem;
}
.form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #00c4ff;
  box-shadow: 0 0 0 3px rgba(0, 196, 255, 0.2);
  color: #fff;
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.fp-otp-input {
  letter-spacing: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}
.btn-success {
  background: linear-gradient(135deg, #00b09b, #96c93d);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 176, 155, 0.35);
}
.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #00a38f, #8cbf3c);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 176, 155, 0.5);
}
.btn-success:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   Account radio buttons
   ============================================================ */
label.radio-btn-label {
  border: 2px solid rgba(0, 196, 255, 0.5);
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  transition: all 0.3s;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
}
label.radio-btn-label:hover {
  background: rgba(0, 196, 255, 0.1);
  border-color: #00c4ff;
  transform: translateY(-1px);
}
input.radio-btn-box[type="radio"] {
  display: none;
}
input.radio-btn-box[type="radio"]:checked + label.radio-btn-label {
  background: linear-gradient(135deg, #00c4ff, #0099cc);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 196, 255, 0.4);
}

/* ============================================================
   Info banner (in-game tab)
   ============================================================ */
.fp-info-banner {
  background: rgba(0, 196, 255, 0.08);
  border: 1px solid rgba(0, 196, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.fp-info-banner i {
  color: #00c4ff;
}

/* ============================================================
   Reference pill
   ============================================================ */
.fp-ref-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.fp-ref-pill strong {
  color: #00c4ff;
  margin-left: 4px;
  letter-spacing: 0.1rem;
}

/* ============================================================
   Alert overrides
   ============================================================ */
.alert-danger {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #ffb3b8;
  border-radius: 12px;
}

/* ============================================================
   Back link
   ============================================================ */
.fp-back-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .25s ease;
}
.fp-back-link:hover {
  color: #00c4ff;
}

/* ============================================================
   Form steps — show/hide via JS (default hidden, displayForm flips)
   ============================================================ */
form .form-group[data-step] {
  display: none;
  animation: fpStepIn .35s ease-out;
}
@keyframes fpStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 575px) {
  .fp-step-line { flex: 0 0 24px; }
  .fp-step-label { font-size: 0.7rem; }
  .text-header { font-size: 1.5rem; }
  .fp-otp-input { letter-spacing: 0.3rem; font-size: 1.2rem; }
}
