* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Garamond', serif;
  background: #0a0a0a;
  color: #eee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  text-align: center;
  max-width: 500px;
  width: 100%;
}

h1 {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #ff6b6b;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
  letter-spacing: 3px;
}

.guitar-image {
  width: 100%;
  max-width: 420px;
  margin: 40px auto;
  filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.4)) drop-shadow(0 0 60px rgba(70, 200, 255, 0.3));
  animation: float 12s ease-in-out infinite;
}

.guitar-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}


 
.guest-btn {
  background: #333;
  color: #ddd;
  border: 2px solid #555;
}



.google-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

 

/* Animazione delicata di "galleggiamento" */
@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

/* Effetto neon leggero sul testo */
.neon {
  position: absolute;
  left: 50%;
  top: auto;
  transform: translate(-50%, -50%);
  margin: auto;
  font-size: 5.2em;
  font-weight: 900;
  font-family: 'Garamond', serif;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff6b6b, #f1c40f, #d4af37, #f1c40f, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 10px rgba(255, 107, 107, 0.8),
    0 0 20px rgba(241, 196, 15, 0.6),
    0 0 40px rgba(212, 175, 55, 0.5),
    0 0 80px rgba(255, 107, 107, 0.3);
  pointer-events: none;
  z-index: 1;
}





.google-btn,
.facebook-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  width: 100%;
  background: white;
  color: #444;
}

.guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  width: 100%;
  background: rgb(31, 29, 29);
  color: #a09d9d;
}

.guest-btn:hover {
  background: #444;
  border-color: #eee;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

.google-btn:hover,
.facebook-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.google-btn img,
.facebook-btn img {
  height: 20px;
}


/* Footer */
.login-footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: #666;
  font-size: 0.85em;
}

.login-footer p {
  margin: 0;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 15px;
  width: 100%;
}

.signin-btn,
.register-btn {
  flex: 1;
  padding: 18px 40px;
  border-radius: 12px;
  font-family: 'Garamond', serif;
  font-size: 1.1em;
  font-weight: bold;
  font-size: 12;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signin-btn {
  background: linear-gradient(135deg, #f1c40f 0%, #ff6b6b 100%);
  color: black;
}

.register-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #f1c40f 100%);
  color: black;
}

.signin-btn:hover,
.register-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.divider {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 5px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #333;
}

.divider span {
  color: #888;
  font-size: 0.9em;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid #444;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2em;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ff6b6b;
}

.modal-box h2 {
  color: #ff6b6b;
  margin-bottom: 30px;
  text-align: center;
  font-size: 2em;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ddd;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #444;
  background: #1a1a1a;
  color: #eee;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b6b;
}

.form-group .error {
  color: #ff4444;
  font-size: 0.85em;
  margin-top: 5px;
  display: none;
}

.form-group .success {
  color: #4CAF50;
  font-size: 0.85em;
  margin-top: 5px;
  display: none;
}

.form-group input.invalid {
  border-color: #ff4444;
}

.form-group input.valid {
  border-color: #4CAF50;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn.signin {
  background: linear-gradient(135deg, #f1c40f 0%, #ff6b6b 100%);
  color: black;
}

.submit-btn.register {
  background: linear-gradient(135deg, #f1c40f 0%, #ff6b6b 100%);
  color: black;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {

  h1 {
    font-size: 1.8em;
  }

  .guitar-image {
    max-width: 200px;
    margin: 30px auto;
  }

  .guest-btn {
    padding: 15px 30px;
    font-size: 1em;
  }

  .auth-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
  }

  .modal-box {
    padding: 30px 20px;
  }

  /* Message box mobile */
  .yj-message-box {
    width: 90%;
    max-width: 90%;
    padding: 20px;
  }

  .yj-message-icon {
    font-size: 3em;
  }

  .yj-message-title {
    font-size: 1.4em;
  }

  .yj-message-text {
    font-size: 1em;
  }

  .yj-message-btn {
    padding: 12px 24px;
    font-size: 1em;
  }
}

/* ───── YOUJAZZ MODERN MESSAGE BOX ───── */
.yj-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.yj-message-overlay.show {
  opacity: 1;
  visibility: visible;
}

.yj-message-box {
  background: #1a1a1a;
  border: 2px solid #d4af37;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yj-message-overlay.show .yj-message-box {
  transform: scale(1);
}

.yj-message-icon {
  font-size: 4em;
  margin-bottom: 16px;
  color: #d4af37;
}

.yj-message-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #d4af37;
  margin: 0 0 12px 0;
  font-family: 'Garamond', serif;
}

.yj-message-text {
  font-size: 1.2em;
  color: #eee;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.yj-message-btn {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: black;
  border: none;
  padding: 14px 32px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.2s;
}

.yj-message-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.6);
}

.yj-message-btn:active {
  transform: translateY(0);
}

.yj-message-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.yj-btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: black;
}

.yj-btn-secondary {
  background: #444;
  color: #eee;
}

.yj-btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.yj-btn-primary:hover,
.yj-btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.yj-input {
  width: 100%;
  padding: 12px 16px;
  background: #333;
  border: 2px solid #555;
  border-radius: 12px;
  color: #eee;
  font-size: 1.1em;
  text-align: center;
}

.yj-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}