/* -------------------------------------------------------------------
   Root Palette
   ------------------------------------------------------------------- */
:root {
  --background-color: #0b0b12;
  --text-color: #f0f0f0;
  --accent-red: #c61204;
  --accent-yellow: #e2a404;
  --muted-color: #888;
}

/* -------------------------------------------------------------------
   Global Reset & Base Styles
   ------------------------------------------------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  display: block;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background:
    linear-gradient(rgba(12, 12, 12, 0.95), rgba(12, 12, 12, 0.95)),
    url('https://www.transparenttextures.com/patterns/wood-pattern.png');
  background-size: cover;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* -------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------- */
/* Full-screen particle layer */
#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Shared wrapper for header & main content */
.header,
.main-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  padding: 2vh 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 1.5s ease-out;
}

/* Extra top padding only on header */
.header {
  padding-top: 2vh;
}

/* -------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------- */
h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 .highlight {
  color: var(--accent-yellow);
}

p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-color);
  margin: 0 0 2.5rem;
}
a {
  color: var(--accent-yellow);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-red);
}

/* -------------------------------------------------------------------
   Logo
   ------------------------------------------------------------------- */
.logo {
  width: 200px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 8px rgba(198, 18, 4, 0.4));
}

/* -------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------- */
/* General form containers */
.email-form,
.otp-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* OTP inputs row */
.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

/* Base input styling */
.form-control,
.code-input {
  font-size: 1rem;
  padding: 1rem;
  border: 1px solid var(--muted-color);
  background: transparent;
  color: var(--text-color);
  text-align: center;
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

/* Rounded pill inputs */
.form-control {
  border-radius: 25px;
}

/* Compact code-style inputs */
.code-input {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: #121212;
  color: var(--accent-yellow);
}

/* Focus states */
.form-control:focus,
.code-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(226, 164, 4, 0.3);
  background: #1a1a1a;
}

/* -------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */
.btn-submit {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  background-color: var(--accent-yellow);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(226, 164, 4, 0.3);
}

/* -------------------------------------------------------------------
   Resend Link
   ------------------------------------------------------------------- */
.resend-wrapper {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-top: 1.2rem;
}

.resend-wrapper a {
  color: var(--accent-yellow);
  text-decoration: underline;
}

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted-color);
  text-align: center;
}

/* -------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------- */
.alert {
  background: #1a1a1a;
  border: 1px solid var(--accent-red);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  color: var(--text-color);
  text-align: center;
}

.alert--error h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.alert h2 {
  margin: 1rem 0;
  font-weight: 600;
}

.alert__detail {
  color: var(--muted-color);
  margin: 1rem 0;
}

.alert__subtext {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-top: 2rem;
}

.alert a {
  color: var(--accent-yellow);
  text-decoration: underline;
}

/* -------------------------------------------------------------------
   Policy Tables (Privacy / Terms / Cookies)
   ------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #121212;
  color: var(--text-color);
  text-align: left;
}

th, td {
  padding: 1rem;
  border: 1px solid white;
  vertical-align: top;
}

thead th {
  color: var(--accent-yellow);
  text-transform: uppercase;
  font-weight: 600;
  background-color: transparent;
}

tbody tr:hover {
  background-color: rgba(226, 164, 4, 0.05);
}

caption {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-bottom: 0.5rem;
  text-align: left;
}
/* Container & animation */
.dls-toast {
  position: fixed !important;
  top: 1.5rem !important;      /* anchor to top */
  left: 50% !important;        /* center horizontally */
  transform: translateX(-50%) translateY(-100%);
  max-width: 300px;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999 !important;
}

.dls-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Text inside */
.dls-toast__msg {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.dls-toast__detail {
  margin: 0;
  font-size: 0.85rem;
  opacity: 1;
}

/* Accent borders for each type */
.dls-toast--success {
  border-left: 5px solid #4CAF50;   /* vivid green */
}
.dls-toast--info {
  border-left: 5px solid #2196F3;   /* bright blue */
}
.dls-toast--error {
  border-left: 5px solid #F44;   /* bold red */
}






