/* Login Page Styles - FIA Fleet Management */

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

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff 0%, #f7f9fa 100%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas background */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Container principale */
.main-container {
  display: flex;
  width: 90%;
  max-width: 1000px;
  height: 600px;
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 74, 173, 0.15);
  position: relative;
  z-index: 1;
}

/* Parte sinistra - immagine/grafica */
.left-panel {
  flex: 1;
  background-color: #004aad;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden;
}

.left-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/map-pattern.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.company-logo {
  max-width: 180px;
  width: 70%;
  height: auto;
  margin-bottom: 20px;
  position: relative;
  animation: fadeInDown 1s ease;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.welcome-text {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.welcome-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.welcome-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 380px;
}

.features-list {
  position: relative;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.feature-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.feature-icon i {
  font-size: 1.2rem;
}

.feature-text {
  font-size: 1rem;
  opacity: 0.9;
}

/* Parte destra - form login */
.right-panel {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  margin-bottom: 40px;
}

.login-header h2 {
  font-size: 2rem;
  color: #004aad;
  margin-bottom: 10px;
  font-weight: 500;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

.login-form {
  width: 100%;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #004aad;
  opacity: 0.7;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: #333;
}

.input-group input:focus {
  border-color: #004aad;
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
  outline: none;
}

.btn {
  width: 100%;
  padding: 14px;
  background-color: #004aad;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn:hover {
  background-color: #003a8d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 74, 173, 0.2);
}

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

.forgot-password {
  text-align: right;
  margin-top: 10px;
}

.forgot-password a {
  color: #004aad;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #003a8d;
  text-decoration: underline;
}

.error-message {
  background-color: #fff2f2;
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
  padding: 12px 15px;
  margin-bottom: 25px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.error-message i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.footer-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #004aad;
  margin-top: 30px;
  text-align: center;
}

/* Animazioni */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cerchi decorativi */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 210, 255, 0.1);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
}

/* Responsive */
@media (max-width: 992px) {
  .main-container {
    flex-direction: column;
    height: auto;
    max-width: 500px;
  }

  .left-panel {
    padding: 30px;
    height: 200px;
  }

  .company-logo {
    max-width: 100px;
    width: 60%;
    margin-bottom: 10px;
  }

  .welcome-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .welcome-text p {
    font-size: 0.9rem;
  }

  .features-list {
    display: none;
  }
}

@media (max-width: 576px) {
  .right-panel {
    padding: 30px 20px;
  }

  .login-header h2 {
    font-size: 1.8rem;
  }

  .input-group input {
    padding: 12px 12px 12px 40px;
  }
}
