body {
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.karaoke-container {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  padding: 2.5rem 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  transition: max-width 0.4s ease-in-out;
}

.logo-placeholder {
  text-align: center;
  margin-bottom: 2rem;
  color: #ffcc00;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.logo-placeholder span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  letter-spacing: 1px;
}

form h2 {
  text-align: center;
  color: #ffcc00;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.3);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.form-row .input-group {
  flex: 1;
  margin-bottom: 0;
}

.input-group {
  margin-bottom: 1.2rem;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #ffcc00;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.input-group input {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  transition: all 0.3s ease;
  position: relative;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.input-group input:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.input-group input.error {
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
  animation: shake 0.5s ease;
}

.input-group input.error:focus {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}

.error-message {
  display: block;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group input:hover:not(:focus) {
  border-color: rgba(255, 204, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.12);
}

.input-group:focus-within label {
  color: #ffdd44;
  text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

form {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group input.error {
  box-shadow: 0 0 10px rgba(244, 67, 54, 0.4);
}

.input-group input,
.input-group label,
.error-message {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password {
  display: block;
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #a0a0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  text-decoration: underline;
  color: #ffcc00;
}

.toggle-link {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: #e0e0e0;
}

.toggle-link a {
  color: #a0a0ff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-link a:hover {
  text-decoration: underline;
  color: #ffcc00;
}

.hidden {
  display: none;
}

.karaoke-container.signup-active {
  max-width: 750px;
}

@media (max-width: 800px) {
  .karaoke-container.signup-active {
    max-width: 95%;
  }
}

@media (max-width: 500px) {
  .karaoke-container {
    padding: 1.5rem 2rem;
    margin: 0 1rem;
  }

  .logo-placeholder {
    font-size: 2rem;
  }

  form h2 {
    font-size: 1.7rem;
  }

  .btn {
    font-size: 1.1rem;
    padding: 0.9rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .form-row .input-group {
    margin-bottom: 1.2rem;
  }
}

.btn.btn-secondary {
  background: transparent;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
  margin-top: 0.75rem;
}

.btn.btn-secondary:hover {
  background: rgba(255, 204, 0, 0.1);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
  color: #ffdd44;
}

.form-message {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid transparent;
  animation: fadeIn 0.4s ease;
}

.message-success {
  background-color: rgba(76, 175, 80, 0.15);
  color: #a5d6a7;
  border-color: rgba(76, 175, 80, 0.5);
}

.message-error {
  background-color: rgba(244, 67, 54, 0.15);
  color: #ef9a9a;
  border-color: rgba(244, 67, 54, 0.5);
}

.message-info {
  background-color: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  border-color: rgba(255, 204, 0, 0.5);
}
