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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #191919;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CONTENITORE PRINCIPALE */
.page-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 75px);
}

/* PARTE SINISTRA */
.left-panel {
  width: 50%;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  text-align: center;
  padding: 35px 15px 25px;
}

.logo {
  font-size: 27px;
  font-weight: 800;
  color: #1769aa;
  letter-spacing: -1px;
}

.header p {
  margin-top: 10px;
  color: #333;
  font-size: 15px;
  font-family: 'Arial', sans-serif;
  font-weight: 600;
}

/* LOGIN */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 10px 15px 35px;
}

.login-card {
  background: white;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 25px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  font-weight: bold;
  margin: 13px 0 8px;
}

input {
  width: 100%;
  height: 48px;
  padding: 12px;
  border: 1px solid #777;
  border-radius: 5px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border: 2px solid #1769aa;
}

a {
  color: #1769aa;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 17px;
  align-self: flex-start;
}

a:hover {
  text-decoration: underline;
}

button {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 25px;
  background: #A9D5F5;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 22px;
}

button:hover {
  background: #72b3e5;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777;
  font-size: 13px;
  margin-top: 25px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.secondary {
  background: white;
  color: #1769aa;
  border: 1px solid #1769aa;
  margin-top: 20px;
}

.secondary:hover {
  background: #eef6fc;
}

#message {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.5;
  color: #174d75;
}

.image-panel {
  width: 50%;
  position: relative;
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* TESTO SOPRA L'IMMAGINE */
.image-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
}

.image-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.image-text p {
  font-size: 17px;
  line-height: 1.5;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 15px;
  color: #777;
  font-size: 12px;
}

/* TABLET E SMARTPHONE */
@media (max-width: 768px) {

  .page-layout {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
  }

  .image-panel {
    display: none;
  }

  .container {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {

  .login-card {
    padding: 25px 20px;
  }

  .header {
    padding-top: 25px;
  }
}
