
:root {
  --bg-body: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  --bg-card: #020817;
  --bg-elevated: #050b1d;
  --accent: #2563eb;
  --accent-strong: #4f46e5;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --danger: #ef4444;
  --success: #22c55e;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ====== GLOBAL RESETS ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ====== LAYOUT ====== */

.page {
  max-width: 1200px;
  width: 100%;
  margin: 24px auto 40px;
  padding: 0 20px 40px;
}

/* Sections */
section {
  margin-bottom: 28px;
}

/* ====== HERO SECTION ====== */

.hero {
  margin-top: 24px;
  margin-bottom: 32px;
}

.hero__content {
  position: relative;
  border-radius: 24px;
  padding: 26px 22px 24px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.16), transparent 55%),
    linear-gradient(145deg, #020617, #02081a);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
}

.hero__content h1 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.hero__content h1 span {
  color: var(--accent-strong);
}

.hero__content p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero right-side – preview grid / stats */
.hero__aside {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.hero-stat {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #e0f2fe;
}

.hero-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hero-grid__item {
  position: relative;
  border-radius: 16px;
  padding-top: 130%;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-grid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 55%);
}

/* ====== BUTTONS ====== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.08s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.65);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn--small {
  padding: 5px 12px;
  font-size: 12px;
}

.btn--full {
  width: 100%;
}

/* ====== CARDS & GRID ====== */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border-radius: 20px;
  padding: 14px 14px 16px;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.list li + li {
  margin-top: 4px;
}

/* ====== AUTH PAGES (login, register, password) ====== */

.auth {
  max-width: 420px;
  margin: 40px auto 48px;
}

.auth__card {
  border-radius: 22px;
  padding: 22px 20px 20px;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
}

.auth__card h1 {
  margin: 0 0 10px;
  font-size: 20px;
}

.auth__card p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ====== FORMS ====== */

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}

.form__group label,
.form__group span {
  font-size: 13px;
  color: var(--text-muted);
}

.form__group--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  border-radius: 11px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form__actions {
  margin-top: 10px;
}

/* ====== ALERTS ====== */

.alert {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid transparent;
  margin-bottom: 10px;
}

.alert--error {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
}

.alert--success {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
}

/* ====== TABLES ====== */

.table-wrapper {
  margin-top: 10px;
  border-radius: 18px;
  overflow: auto;
  border: 1px solid rgba(31, 41, 55, 0.95);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th,
.table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  white-space: nowrap;
}

.table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.98);
}

/* ====== FOOTER ====== */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer__brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer__logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #facc15, #ef4444, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__name {
  font-size: 13px;
  color: #e5e7eb;
}

.footer__copy {
  font-size: 11px;
}

.footer__motto {
  font-size: 11px;
  color: #e0f2fe;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.footer__nav a {
  color: var(--text-muted);
}

.footer__nav a:hover {
  color: #e5e7eb;
}

/* ====== COOKIE BANNER ====== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  z-index: 50;
}

.cookie-banner__inner {
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__aside {
    order: -1;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 0 14px 32px;
    margin-top: 18px;
  }

  .hero__content {
    padding: 18px 16px 16px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__inner {
    padding-inline: 14px;
  }
}


/* Honeypot field – always hidden from real users */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Small explanatory text under form fields */
.form__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(148,163,184,0.95);
}


/* === NEW REGISTER PAGE STYLE – SPLIT LAYOUT === */

.auth--wide {
  max-width: 900px;
  margin: 40px auto 56px;
}

.auth__card--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 26px;
  border-radius: 26px;
  padding: 26px 24px 24px;
  background:
    radial-gradient(circle at top right, rgba(250,204,21,0.10), transparent 60%),
    radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 55%),
    rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 26px 70px rgba(15,23,42,0.95);
}

.auth__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth__info h1 {
  margin: 0;
  font-size: 26px;
}

.auth__subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.auth__bullets {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth__bullets li + li {
  margin-top: 6px;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form--stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .auth--wide {
    max-width: 100%;
    margin: 24px 14px 40px;
  }

  .auth__card--split {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px 18px;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* === LOGIN OLDAL – MODERN LINK KÁRTYÁK === */
.auth__links-modern {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.auth__box {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148,163,184,0.65);
  background:
    radial-gradient(circle at top right, rgba(250,204,21,0.08), transparent 55%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.12), transparent 60%),
    rgba(15,23,42,0.98);
  box-shadow: 0 18px 50px rgba(15,23,42,0.9);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.auth__box:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 60px rgba(15,23,42,0.95);
  border-color: rgba(250,204,21,0.95);
}

.auth__box-title {
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 4px;
}

.auth__box-desc {
  font-size: 13px;
  color: var(--text-muted);
}


/* === LOGIN OLDAL – MODERN FELSŐ MENÜ === */
.auth-menu {
  margin: 12px 0 18px;
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(148,163,184,0.45);
}

.auth-menu__item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(148,163,184,0.95);
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .16s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-menu__item:hover {
  transform: translateY(-1px);
  border-color: rgba(248,250,252,0.16);
  color: #e5e7eb;
}

.auth-menu__item--active {
  background: linear-gradient(135deg, #020617, #0f172a, #1d263b);
  color: #f9fafb;
  border-color: rgba(250,204,21,0.8);
  box-shadow:
    0 0 10px rgba(15,23,42,0.9),
    0 0 18px rgba(250,204,21,0.55);
}


/* === LOGIN – AKTUÁLIS FOGALALTSÁG KÁRTYA === */
.login-capacity {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(250,204,21,0.55);
  background:
    radial-gradient(circle at top right, rgba(250,204,21,0.10), transparent 55%),
    radial-gradient(circle at bottom left, rgba(37,99,235,0.18), transparent 60%),
    rgba(15,23,42,0.97);
  box-shadow: 0 18px 46px rgba(15,23,42,0.95);
}

.login-capacity__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148,163,184,0.95);
  margin-bottom: 4px;
}

.login-capacity__numbers {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 700;
  margin-bottom: 2px;
}

.login-capacity__current {
  font-size: 18px;
  color: #e5e7eb;
}

.login-capacity__sep {
  font-size: 14px;
  color: rgba(148,163,184,0.9);
}

.login-capacity__max {
  font-size: 14px;
  color: rgba(250,204,21,0.95);
}

.login-capacity__hint {
  font-size: 12px;
  color: rgba(148,163,184,0.95);
}

/* WELCOME SCREEN */
.welcome-popup {
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 20px;
  text-align: center;
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(250,204,21,0.6);
  box-shadow: 0 0 20px rgba(250,204,21,0.3);
  color: #f1f5f9;
}
.welcome-popup h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fde047;
}

/* === MODERN WELCOME SCREEN === */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,2,20,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.6s ease forwards;
}

.welcome-card {
  background: radial-gradient(circle at top, rgba(250,204,21,0.15), rgba(15,23,42,0.95));
  padding: 40px 50px;
  border-radius: 22px;
  text-align: center;
  border: 1px solid rgba(250,204,21,0.7);
  box-shadow: 0 0 25px rgba(250,204,21,0.35), 0 0 60px rgba(15,23,42,0.9);
  animation: scaleIn 0.5s ease forwards;
}

.welcome-card h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.welcome-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.welcome-text {
  font-size: 16px;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.welcome-count {
  font-size: 14px;
  color: #facc15;
}

@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity:0; }
  to { transform: scale(1); opacity:1; }
}


/* === AUTH OLDALAK – MODERN BETÖLTÉSI EFFEKT === */
.auth-preloader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,0.98));
  backdrop-filter: blur(6px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s ease;
}

.auth-preloader__inner {
  position: relative;
  padding: 28px 34px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(250,204,21,0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.18), transparent 60%),
    rgba(15,23,42,0.98);
  border: 1px solid rgba(250,204,21,0.7);
  box-shadow:
    0 0 24px rgba(15,23,42,0.96),
    0 0 40px rgba(250,204,21,0.40);
  text-align: center;
  animation: authPreloaderPop .5s ease-out forwards;
}

.auth-preloader__ring {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid rgba(15,23,42,0.9);
  border-top-color: #facc15;
  border-right-color: #facc15;
  margin: 0 auto 10px;
  animation: authPreloaderSpin 0.9s linear infinite;
}

.auth-preloader__logo {
  font-size: 20px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.auth-preloader__text {
  font-size: 13px;
  color: rgba(148,163,184,0.95);
}

.auth-preloader--hide {
  opacity: 0;
  transform: scale(0.98);
  visibility: hidden;
  pointer-events: none;
}

@keyframes authPreloaderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes authPreloaderPop {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}


/* Fade-out az üdvözlő overlay-hez */
#welcomeOverlay {
  opacity: 1;
  transition: opacity 0.5s ease;
}


/* Belépés utáni üdvözlő toast */
.toast {
  position: fixed;
  top: 82px;
  right: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(250,204,21,0.75);
  box-shadow:
    0 10px 30px rgba(15,23,42,0.9),
    0 0 20px rgba(250,204,21,0.55);
  animation: toast-in 0.3s ease-out, toast-out 0.4s ease-in 4.6s forwards;
}

.toast__icon {
  font-size: 18px;
}

.toast__title {
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
}

.toast__text {
  font-size: 13px;
  color: #e5e7eb;
}

.toast__body {
  display: flex;
  flex-direction: column;
}

.toast--welcome {
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px) translateX(10px); }
  to   { opacity: 1; transform: translateY(0) translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) translateX(0); }
  to   { opacity: 0; transform: translateY(-8px) translateX(10px); }
}
