*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body, div, form, input, select, p {
  padding: 0;
  margin: 0;
  outline: none;
  font-family: Roboto, Arial, sans-serif;
  font-size: 13px; /* ridotto da 16px */
  color: #eee;
  line-height: 1.3;
}

body {
  background: url("./background.jpg") no-repeat center;
  background-size: cover;
}

h1, h2 {
  text-transform: uppercase;
  font-weight: 400;
}
h1 {
  font-size: 24px; /* ridotto */
}
h2 {
  margin: 0 0 0 8px;
  font-size: 18px; /* ridotto */
}

.main-block {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 15px; /* ridotto */
  background: rgba(0, 0, 0, 0.50);
}

.left-part, form {
  padding: 15px; /* ridotto */
}

.left-part {
  text-align: center;
}

.fa-graduation-cap {
  font-size: 48px; /* ridotto */
}

form {
  background: rgba(0, 0, 0, 0.70);
  border-radius: 8px; /* più compatto */
  backdrop-filter: saturate(120%) blur(2px);
  box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.35);
}

.title {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 16px; /* ridotto */
}

input, select {
  padding: 6px; /* ridotto */
  background: transparent;
  border: none;
  border-bottom: 1px solid #eee;
  color: #eee;
  font-size: 13px; /* ridotto */
}

input::placeholder {
  color: #eee;
}

option {
  background: black;
  border: none;
}
option:focus {
  border: none;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px; /* ridotto */
}
.checkbox input {
  margin: 0;
  vertical-align: middle;
}
.checkbox a {
  color: #ec2029;
  text-decoration: underline;
}
.checkbox a:hover {
  color: #c8181f;
}

.btn-item, button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px; /* ridotto */
  margin-top: 10px;
  border-radius: 6px; /* più compatto */
  border: none;
  background: #ec2029;
  text-decoration: none;
  font-size: 13px; /* ridotto */
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform .06s ease, background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 6px rgba(236,32,41,0.35);
}

.btn-item {
  margin-right: 8px;
}

button {
  width: 100%;
}

button:hover,
.btn-item:hover {
  background: #c8181f;
}
button:active,
.btn-item:active {
  transform: translateY(1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 4px;
}

.text-green {
  font-weight: bold;
  color: #21c021;
}
.text-orange {
  font-weight: bold;
  color: orange;
}

@media (min-width: 568px) {
  html, body {
    height: 100%;
  }

  .main-block {
    flex-direction: row;
    height: calc(100% - 30px); /* ridotto */
  }
  .left-part, form {
    height: auto;
    width: 80%; /* più stretto */
  }
  .btn-item {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .left-part {
    text-align: left;
  }
  .fa-graduation-cap {
    margin-top: 0;
    margin-left: 0;
  }
  form {
    width: 60%; /* più stretto */
  }
  .btn-item {
    width: auto;
  }
  button {
    width: 100%;
  }
}
