@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Press Start 2P", cursive;
  image-rendering: pixelated;
}

body {
  margin: 0;
  padding: 0;
  background: #1a1a1a;
  color: #e0e0e0;
  min-height: 100vh;
  position: relative;
  background-image: linear-gradient(
      rgba(26, 26, 26, 0.95),
      rgba(26, 26, 26, 0.95)
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.05) 2px,
      rgba(255, 255, 255, 0.05) 4px
    );
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #2c2137;
  color: #ffd700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  border-bottom: 4px solid #1a1a1a;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: normal;
  flex: 1;
  text-shadow: 2px 2px 0 #000;
}

.nav-brand a {
  color: #ffd700;
  text-decoration: none;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.home-icon {
  text-decoration: none;
  color: #ffd700;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px;
  border: 2px solid #ffd700;
  border-radius: 8px;
  background: #2c2137;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-size: 0;
  width: 36px;
  height: 36px;
}

.home-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("../images/home-icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(2px 2px 0 #000);
}

.home-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  background: #3a2f4c;
}

.home-icon:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-buttons button {
  padding: 8px 16px;
  background: #ffd700;
  color: #1a1a1a;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nav-buttons button:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: #ffed4a;
}

.auth-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: #2c2137;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

.auth-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 215, 0, 0.05) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.auth-container h2 {
  color: #ffd700;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 20px;
  font-weight: normal;
  text-shadow: 2px 2px 0 #000;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 12px;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 12px;
  font-weight: normal;
  transition: all 0.1s ease;
}

.auth-form input:focus {
  border-color: #ffd700;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.auth-form button {
  padding: 12px;
  background: #ffd700;
  color: #1a1a1a;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.1s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.auth-form button:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: #ffed4a;
}

.auth-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 12px;
}

.auth-links a {
  color: #ffd700;
  text-decoration: none;
  text-shadow: 1px 1px 0 #000;
}

.auth-links a:hover {
  text-decoration: underline;
}

.error-message {
  color: #ff4d4d;
  margin-top: 0.5rem;
  font-size: 10px;
  text-shadow: 1px 1px 0 #000;
}

@media screen and (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-brand {
    font-size: 1rem;
  }

  .auth-container {
    margin: 1rem;
    padding: 1.5rem;
  }

  .auth-container h2 {
    font-size: 16px;
  }

  .auth-form input,
  .auth-form button {
    font-size: 10px;
    padding: 10px;
  }

  .auth-links {
    font-size: 10px;
  }
}

a {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}
