/* ===== LOGIN & REGISTER CSS ===== */

body {
  font-family: 'Inter', sans-serif;
  background-color: #f0f2f5; /* Modern szürke háttér */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

form {
  background: #ffffff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

h3 {
  color: #1b1f3b; /* Sötétkék */
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Input mezők */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  background-color: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Fontos a méretezéshez */
}

input:focus {
  border-color: #ad5a75;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(173, 90, 117, 0.1);
}

/* Fő gomb */
button {
  width: 100%;
  padding: 14px;
  background-color: #ad5a75;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

button:hover {
  background-color: #994a63;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(173, 90, 117, 0.2);
}

/* Másodlagos linkek */
.secondary-btn {
  display: block;
  text-decoration: none;
  background-color: #f4e6ea;
  color: #ad5a75;
  padding: 12px 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background-color: #e8d5db;
  color: #8a4259;
}

.back-btn {
  display: block;
  margin-top: 25px;
  text-decoration: none;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-btn:hover {
  color: #ad5a75;
  text-decoration: underline;
}

/* ===== POPUP (MODÁLIS ABLAK) STÍLUSOK ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Sötét háttér */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  max-width: 380px;
  width: 90%;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

/* Típusonkénti színek */
.popup-content.success { border-top: 6px solid #2ecc71; }
.popup-content.error { border-top: 6px solid #e74c3c; }

.popup-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.popup-content.success h2 { color: #2ecc71; }
.popup-content.error h2 { color: #e74c3c; }

.popup-content p {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.popup-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.popup-content.success .popup-btn {
  background-color: #2ecc71;
  color: white;
}

.popup-content.error .popup-btn {
  background-color: #e74c3c;
  color: white;
}

.popup-btn:hover { transform: scale(1.05); opacity: 0.9; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }