* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0a0f1c;
  color: #C8A453;
  min-height: 100vh;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 20px 20px 20px; /* Spazio extra in alto per la barra lingua */
  overflow-y: auto;
  position: relative;
}

/* Barra di selezione lingua */
.language-bar {
  position: fixed;
  top: 10px;
  right: 30px;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: #C8A453;
  z-index: 9999;
}

.language-bar a {
  text-decoration: none;
  color: #C8A453;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.language-bar a:hover {
  color: white;
}

/* Contenitore principale */
.container {
  border: 2px solid #C8A453;
  padding: 40px 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  text-align: center;
  background-color: transparent;
}

.logo {
  width: 160px;
  margin-bottom: 20px;
  border-radius: 50%;
  filter: drop-shadow(0 0 5px #C8A453);
}

/* Animazione “respiro” */
.animated-logo {
  animation: breathe 3.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    filter: drop-shadow(0 0 5px #C8A453);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px #C8A453);
    transform: scale(1.05);
  }
}

h1, h2 {
  margin: 10px 0;
}

h1 {
  font-size: 1.8em;
  font-weight: bold;
}

h2 {
  font-size: 1.3em;
}

p {
  font-size: 0.95em;
  line-height: 1.5;
}

input[type="password"] {
  padding: 10px;
  border: 1px solid #C8A453;
  background: transparent;
  color: white;
  margin-top: 10px;
  width: 70%;
}

button {
  padding: 10px 20px;
  background-color: #C8A453;
  color: #0a0f1c;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

button:hover {
  background-color: #b08c3e;
}

.show-password {
  margin: 10px 0;
  font-size: 0.9em;
}

.disclaimer, .legal {
  color: #c8a453;
  font-size: 0.85rem;
  margin-top: 20px;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

.legal a {
  color: #c8a453;
  text-decoration: underline;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .logo {
    width: 120px;
  }

  input[type="password"], button {
    width: 100%;
    margin: 10px 0 0 0;
  }

  button {
    margin-left: 0;
  }

  .language-bar {
    font-size: 12px;
    top: 10px;
    right: 20px;
  }
}
