/* Museo Civico di Bassano del Grappa - Stili per Login
 * Specifico per la pagina di login
 */

/* ---- LOGIN FORM STYLING ---- */
.login-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background-color: white;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  opacity: 0;
  animation: scaleIn 1s ease-out forwards 0.5s;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-title {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.login-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
}

.login-subtitle {
  font-family: var(--accent-font);
  font-style: italic;
  color: var(--dark-accent);
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
  opacity: 0;
  animation: floatIn 0.8s ease-out forwards;
}

.form-group:nth-child(1) { animation-delay: 0.7s; }
.form-group:nth-child(2) { animation-delay: 0.9s; }

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-family: var(--font-family);
  font-size: 1.1rem;
  color: var(--dark-accent);
  transition: all 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  background-color: var(--light-bg);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

#password {
  padding-right: 30px
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(10px);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(187, 155, 73, 0.2);
}

.form-input:focus + .input-highlight {
  width: 100%;
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.form-buttons {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 1.1s;
}

.result-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-left: 3px solid var(--accent-color);
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.result-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-container.error {
  border-left-color: Red;
}

.result-container.success {
  border-left-color: Green;
}
#output {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--text-color);
}

/* ---- DECORATIVE FORM ELEMENTS ---- */

.decoration-tl {
  top: -15px;
  left: -15px;
}

.decoration-tr {
  top: -15px;
  right: -15px;
  transform: rotate(90deg);
}

.decoration-bl {
  bottom: -15px;
  left: -15px;
  transform: rotate(270deg);
}

.decoration-br {
  bottom: -15px;
  right: -15px;
  transform: rotate(180deg);
}

/* ---- RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 768px) {
  .login-container {
    padding: 2rem 1.5rem;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}