:root{ /* Importálja a változókat a styles.css-ből */
  --bg:#0a0a0f;
  --card:#14141a;
  --accent:#e50914;
  --accent-2:#ff6b6b;
  --accent-glow:rgba(229,9,20,0.3);
  --muted:#9a9a9a;
  --glass:rgba(255,255,255,0.03);
}

/* Base Body Styles for Centering (A styles.css-ben lévő background-ot használja, csak centrál) */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px; 
}

/* A fő doboz */
.auth-container {
  background: rgba(10, 10, 15, 0.95); /* Sötétebb háttér */
  border: 1px solid rgba(229, 9, 20, 0.4); /* Vörös keret */
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 30px rgba(229, 9, 20, 0.15); /* Erősebb árnyék */
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
  animation: fadeIn 1s ease-out; /* Főoldali fade-in animáció */
}

.center-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

/* Logo Stílus (A styles.css-ből örökölt .logo-text és .logo-sub használatával) */
.logo {
  cursor: default;
}

/* Váltó gombok (Bejelentkezés / Regisztráció) */
.auth-toggle {
  display: flex;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50px; 
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.auth-toggle button {
  flex: 1;
  background: transparent;
  border: none;
  color: #aaa;
  padding: 12px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}

.auth-toggle button.active {
  background: var(--accent, #e50914); /* Piros aktív állapot */
  color: #fff;
  box-shadow: 0 4px 15px rgba(229,9,20,0.4);
}

.auth-form {
  display: none;
  animation: fadeIn 0.5s;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 22px;
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Input mezők */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05); /* Áttetsző sötét */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff; /* Fehér szöveg íráskor! */
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s;
}

.input-group input:focus {
  border-color: #e50914; /* Fókuszban piros keret */
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
  background: rgba(0, 0, 0, 0.4);
}

/* Gomb méretének beállítása */
.full-width {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  border-radius: 2px;
  overflow: hidden;
}

/* A tényleges piros csík, ami fogy */
.timer-bar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  /* Lineáris csökkenés */
  transition: width 0.05s linear; 
}

/* Vissza link */
.back-link {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
}

.back-link a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}
.back-link a:hover {
  color: #fff;
}

/* Animációk (fadeIn szükséges a form váltáshoz) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}