:root {
  --bg: #ffffff;
  --line: rgba(0, 0, 0, 0.04);
  --card: #ffffff;
  --text: #111318;
  --muted: #5b6675;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --ring: rgba(37, 99, 235, 0.35);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    repeating-linear-gradient(
      0deg,
      var(--line),
      var(--line) 1px,
      transparent 1px,
      transparent 24px
    ),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 32px;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
  user-select: none;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
}

p.sub {
  margin: 0 0 22px 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.field { position: relative; }

label.floating {
  position: absolute;
  left: 12px;
  top: -9px;
  background: var(--card);
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 6px;
}

input[type="email"] {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

button[type="submit"] {
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

button[type="submit"]:active { transform: translateY(1px); }

.note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.msg {
  margin-top: 14px;
  text-align: center;
  font-size: 0.95rem;
}

.msg.success { color: #059669; }
.msg.error { color: #dc2626; }

/* Background video layer */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-video .bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 22px;
}

.modal h2 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
}

.modal p { margin: 0 0 16px 0; color: var(--muted); }

.modal .content { max-height: 60vh; overflow: auto; }

.modal .actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(0,0,0,0.12); }

@media (max-width: 520px) {
  .card { padding: 22px; }
  .logo { width: 110px; }
  button[type="submit"] { padding: 0 14px; }
}


