/* ----------------------------------- PALETA DE COLORES PRINCIPAL ----------------------------------- */
:root {
  /* --- Paleta Principal (Fondos) --- */
  --bg-main: #101010;
  --bg-secondary: #141414;
  --bg-tertiary: #181818;
  
  /* --- Paleta de Texto (Foregrounds) --- */
  --text-main: #EBEBEB;
  --text-secondary: #A8A8A8;
  --text-muted: #555555;
  --text-title-task: #E0E0E0;
  
  /* --- Bordes y Separadores --- */
  --border-main: #2A2A2A;
  --border-panel: #3B3B3B;
  
  /* --- Botones Funcionales --- */
  --btn-func-bg: #2B2B2B;
  --btn-func-hover: #262626;
  --btn-func-click: #0F0F0F;
  
  /* --- Tipografía --- */
  --font-family: 'Poppins', sans-serif;
  --font-size-base: 16px;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  
  /* --- Espaciado y Radios --- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  
  /* --- Sombras --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------- RESET Y BASE ----------------------------------- */
* {
  font-family: var(--font-family);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--bg-main);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
}

.form-container {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  padding: 2.5em 2em;
  max-width: 420px;
  width: 100%;
}

h2 {
  text-align: center;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1.2em;
  color: var(--text-title-task);
}

label,
input[type="email"] {
  display: block;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 1em;
  color: var(--text-secondary);
}

input[type="email"] {
  padding: 0.6em;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-main);
  transition: border 0.2s;
}

input[type="email"]::placeholder {
  color: var(--text-muted);
}

input[type="email"]:focus {
  border-color: var(--btn-func-bg);
  outline: none;
  background: var(--bg-secondary);
}

.btn-whitelist {
  margin-top: 8px;
  background-color: var(--text-main);
  color: var(--bg-main);
  padding: 15px;
  font-family: 'Cascadia Code PL';
  font-size: 0.9375em;
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  min-width: 100%;
}

.btn-whitelist::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-whitelist:hover {
  background-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-whitelist:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-whitelist:active::before {
  width: 300px;
  height: 300px;
}

.msg {
  margin-top: 1em;
  font-size: 0.97em;
  text-align: center;
  color: var(--text-main);
}

.msg.ok {
  color: #198754; /* Verde para OK */
}

.msg.err {
  color: #dc3545; /* Rojo para error */
}
