* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

header {
  width: 100%;
}

.header-separator {
  width: 100%;
  height: 0.5px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

body {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: #fdfdfd;
  color: #333;
}

h2 {
  text-align: center;
  margin-top: 55px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 16px;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.35;
}

label {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  color: rgb(36, 35, 42);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  margin-top: 12px;
}

.logo {
  display: block;
  width: clamp(80px, 10vw, 150px);
  max-width: 40vw;
  margin-left: 10px;
}

.login-container {
  display: flex;
  flex-direction: column;
  width: min(90vw, 380px);
  margin: auto;
  padding: 25px 20px 35px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.logo-form {
  width: 82px;
  display: block;
  margin: 0 auto 20px auto;
}

.errore {
  color: red;
  font-family: sans-serif;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
}

input {
  width: 100%;
  color: rgb(36, 35, 42);
  font-size: 16px;
  line-height: 20px;
  min-height: 44px;
  border-radius: 6px;
  padding: 10px 14px;
  border: 2px solid transparent;
  box-shadow: rgb(0 0 0 / 12%) 0px 1px 3px, rgb(0 0 0 / 24%) 0px 1px 2px;
  background: rgb(251, 251, 251);
  transition: all 0.1s ease 0s;
}

input:focus {
  border: 2px solid #a01e1e;
  outline: none;
}

button {
  display: block;
  width: 100%;
  margin: 20px auto;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 24px;
  border: none;
  transition: box-shadow 0.2s ease 0s, transform 0.1s ease 0s;
  background: #a01e1e;
  color: #fff;
}

button:active {
  transform: scale(0.98);
}

.footer-separator {
  width: 100%;
  height: 1.5px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  background-color: #a01e1e;
  color: white;
  font-weight: bold;
}

.footer-end {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  gap: 40px;
}

.footer-left,
.footer-right {
  display: flex;
  padding-inline: 20px;
  align-items: flex-start;
  flex-direction: column;
}

.footer-left a,
.footer-right a {
  text-decoration: none;
  margin-bottom: 10px;
  color: white;
  font-weight: normal;
}

.footer-left p a {
  font-weight: normal;
}

.footer-left a {
  font-weight: bold;
}

.footer-right a {
  margin-top: 5px;
}

.footer-left p,
.footer-right p {
  margin-bottom: 10px;
}

.logo-footer {
  width: clamp(90px, 10vw, 150px);
  max-width: 40vw;
}

@media (max-width: 700px) {
  body {
    align-items: stretch;
  }

  header {
    padding-top: 8px;
  }

  .logo {
    margin: 0 auto 8px;
    width: 90px;
  }

  h2 {
    margin-top: 28px;
    margin-bottom: 22px;
  }

  .login-container {
    width: calc(100% - 28px);
    margin: 0 auto 28px;
    padding: 22px 16px 26px;
  }

  .login-container form {
    align-items: stretch;
  }

  .footer-end {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 14px;
  }

  .footer-left,
  .footer-right {
    padding-inline: 0;
    align-items: center;
  }

  .logo-footer {
    margin: 0;
    width: 110px;
  }
}
