@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #121212;
  color: #e5e7eb;
  line-height: 1.8;
  overflow-x: hidden;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  background: rgba(18, 18, 18, 0.95);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #b8972e;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: #e5e7eb;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.hamburger:hover {
  color: #d4af37;
}

.gradient-bar {
  height: 0.3rem;
  background: linear-gradient(to right, #d4af37, #ffffff, #d4af37);
  animation: gradientFade 3s infinite alternate;
}

@keyframes gradientFade {
  from { background: linear-gradient(to right, #d4af37, #ffffff, #d4af37); }
  to { background: linear-gradient(to right, #b8972e, #f0f0f0, #b8972e); }
}

.content {
  padding: 4rem 0;
  min-height: calc(100vh - 100px);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #d4af37;
  bottom: -0.5rem;
  left: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: #1f2937;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: cardFadeIn 0.5s ease-in-out;
  margin-bottom: 2rem;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.2);
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #d4af37;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p, .card ul {
  font-size: 1rem;
  color: #d1d5db;
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.card ul li i {
  color: #d4af37;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #d4af37, #ffffff);
  color: #121212;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #b8972e, #f0f0f0);
  transform: translateY(-2px);
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 0 10px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* ===== LOGIN PAGE STYLE ===== */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #121212, #2c2c2c);
  padding: 2rem;
}

.login-box {
  background: rgba(31, 41, 55, 0.85);
  padding: 3rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.login-box h1 {
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 2rem;
}

.login-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #d4af37;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: #374151;
  color: #f9fafb;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
  background: #4b5563;
}

.login-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(90deg, #d4af37, #b8972e);
  border: none;
  border-radius: 0.5rem;
  color: #121212;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.6);
}

.login-btn:hover {
  background: linear-gradient(90deg, #b8972e, #d4af37);
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.9);
  transform: translateY(-2px);
}

.signup-button {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid #d4af37;
  border-radius: 0.5rem;
  color: #d4af37;
  font-weight: 600;
  max-width: 400px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.signup-button:hover {
  background: #d4af37;
  color: #121212;
  border-color: #b8972e;
}

.error-msg {
  color: #ff4c4c;
  margin-bottom: 16px;
  text-align: center;
  font-weight: bold;
}

/* Stílusok a boxon kívüli linkekhez */
.auth-link {
  margin-top: 1rem;
  text-align: center;
  color: #d4af37;
  text-decoration: none;
  font-size: 1rem;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Username mező a boxon belül */
.username-container {
  margin-bottom: 1.5rem;
  width: 100%;
  text-align: left; /* Igazítás a többi mezőhöz */
}

.username-container label {
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #d4af37;
}

.username-container input[type="text"] {
  width: 100%;
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: #374151;
  color: #f9fafb;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s ease;
}

.username-container input[type="text"]:focus {
  background: #4b5563;
}