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

html, body {
   height: 100%;
   width: 100%;
   font-family: Arial, sans-serif;
   color: #fff;
   line-height: 1.6;
   overflow-x: hidden;
}

.background-image {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: url('./image/login-image.png') no-repeat center center;
   background-size: cover;
   z-index: -1;
   background-color: #003087; /* Fallback */
}

.login-container {
   position: relative;
   z-index: 1;
   max-width: 400px;
   width: 90%;
   margin: 50px auto;
   padding: 30px;
   background: rgba(255, 255, 255, 0.1);
   border-radius: 15px;
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
   text-align: center;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

h1 {
   color: #fff;
   font-size: 2rem;
   font-weight: 700;
   margin-bottom: 20px;
   text-transform: uppercase;
   letter-spacing: 2px;
}

p {
   color: #e0f7fa;
   font-size: 1rem;
   margin-bottom: 15px;
}

.form-group {
   margin-bottom: 20px;
   text-align: left;
   width: 100%;
}

.form-group label {
   color: #e0f7fa;
   display: block;
   margin-bottom: 5px;
}

.form-group input, .form-group select {
   width: 100%;
   padding: 12px;
   border: none;
   border-radius: 5px;
   background: rgba(255, 255, 255, 0.2);
   color: #fff;
   font-size: 1rem;
   transition: background 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
   background: rgba(255, 255, 255, 0.3);
   outline: none;
}

.login-button {
   width: 100%;
   padding: 12px;
   border: none;
   border-radius: 25px;
   font-size: 1.1rem;
   font-weight: 700;
   cursor: pointer;
   background: linear-gradient(135deg, #00AEEF, #003087);
   color: #fff;
   transition: transform 0.3s ease, background 0.3s ease;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 5px;
}

.login-button:hover {
   transform: translateY(-2px);
   background: linear-gradient(135deg, #0091c2, #002664);
}

.button-icon {
   width: 16px;
   height: 16px;
}

.links {
   margin-top: 15px;
   text-align: center;
}

.register-link, .forgot-link {
   color: #e0f7fa;
   text-decoration: none;
   font-weight: 500;
   margin: 0 10px;
   transition: color 0.3s ease;
}

.register-link:hover, .forgot-link:hover {
   color: #fff;
}

.back-link {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin-top: 15px;
   color: #e0f7fa;
   text-decoration: none;
   font-size: 1rem;
   font-weight: 400;
   transition: color 0.3s ease;
}

.back-link:hover {
   color: #fff;
}

.back-icon {
   width: 16px;
   height: 16px;
}

/* Media query per schermi più piccoli */
@media (max-width: 600px) {
   .login-container {
       margin: 20px auto;
       padding: 20px;
   }

   h1 {
       font-size: 1.5rem;
   }

   p {
       font-size: 0.9rem;
   }

   .form-group input, .form-group select {
       font-size: 0.9rem;
   }

   .login-button {
       font-size: 1rem;
   }
}