body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container h1 {
    color: #1f2937;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
}

.form-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-header h2 {
    color: #1f2937;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #e5e7eb;
    box-shadow: none;
    outline: none;
}

.input-group .btn.btn-link {
  text-decoration: none;
  box-shadow: none !important;
  color: grey;
}

.form-outline .btn.btn-link:focus {
  outline: none;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

form, h1 {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* messaggio di successo o di errore */
.error-message,
.success-message {
  position: fixed;
  top: 100px;
  right: 30px;
  padding: 20px 25px;
  border-radius: 12px;
  color: #000000;
  font-weight: 500;
  box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease-in-out;
  z-index: 9999;
  width: 300px;
}

.error-message {
    background-color: #ffe7e9;
  border-left: 5px solid #f35b5f;
}

.success-message {
  background-color: #cbeede;
  border-left: 5px solid #28a745;
}

.error-message.show,
.success-message.show {
  transform: translateX(0);
  opacity: 1;
}
