.auth-page {
  background: #000 !important;
  font-family: "Titillium Web", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-page .auth-card {
  width: min(100%, 1280px);
  max-width: 1280px;
  background: #000;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 10px 26px 24px;
}

.top-row {
  margin-bottom: 10px;
}

.top-row .brand-logo {
  filter: brightness(0) invert(1);
}

.haier-form {
  color: #fff;
}

.form-hero {
  text-align: center;
  margin-bottom: 14px;
}

.form-hero h1 {
  display: none;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.25;
}

.hero-note {
  margin: 0;
  font-size: clamp(13px, 1.3vw, 18px);
  font-style: italic;
  line-height: 1.25;
}

.registrazione-form .field {
  margin-bottom: 0;
}

.registrazione-form .form-label {
  color: #fff;
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 600;
  margin-bottom: 6px;
}

.registrazione-form .form-control {
  min-height: 42px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 400;
  padding: 0 0 4px 10px;
}

.registrazione-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.registrazione-form .form-control:focus {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.file-upload-dark {
  position: relative;
}

.file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-visual {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: #bfc4ce;
  font-size: clamp(16px, 1.5vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  padding: 0 10px 6px 20px;
}

.file-visual i {
  color: #fff;
  font-size: clamp(18px, 1.6vw, 32px);
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registrazione-form input[type="date"]::-webkit-calendar-picker-indicator,
.registrazione-form input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
}

.registrazione-form hr {
  border-color: rgba(255, 255, 255, 0.2);
  margin: 10px 0 8px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-row .form-check-input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  margin: 0;
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: 1px solid #fff;
  background-color: transparent;
  box-shadow: none;
}

.checkbox-row .form-check-input:checked {
  background-color: #bfc2c8;
  border-color: #bfc2c8;
  background-image: none;
}

.checkbox-row .form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-row .form-check-input:focus {
  box-shadow: none;
}

.checkbox-row .form-check-label {
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 500;
  line-height: 1.3;
}

.newsletter-copy {
  margin: 10px 0 6px;
  color: #fff;
  font-size: clamp(12px, 1vw, 15px);
  text-align: center;
  line-height: 1.4;
}

.newsletter-choice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.choice-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  text-decoration: none;
}

.choice-item input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 22px;
  height: 22px;
  margin: 0;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
}

.choice-item input[type="radio"]:checked {
  background: #bfc2c8;
  border-color: #bfc2c8;
}

.choice-item input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-submit {
  display: block;
  margin-top: 10px;
  min-height: 54px;
  max-width: 190px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  font-size: clamp(14px, 1.1vw, 19px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: transparent;
  color: #fff;
}

.btn-submit:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

.required-note {
  margin: 12px 0 0;
  text-align: center;
  color: #fff;
  font-size: 12px;
}

.contest-note {
  margin: 30px auto 0;
  max-width: 820px;
  text-align: center;
  color: #fff;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.35;
}

.legal-link {
  color: #aab0bb;
  text-decoration: underline;
  text-decoration-color: #aab0bb;
}

.legal-link:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.c_input-error {
  border-color: #ff4d4f !important;
  background-color: transparent !important;
}

.checkbox-row .form-check-input.c_input-error {
  outline: 2px solid #ff4d4f;
  outline-offset: 2px;
}

.err-wrap {
  position: relative;
  display: block;
}

.err-balloon {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: #1f6feb;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 10;
}

.err-balloon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 10px;
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent #1f6feb transparent;
}

@media (max-width: 991px) {
  .auth-page .auth-card {
    padding: 8px 16px 20px;
  }

  .form-hero {
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-note {
    font-size: 14px;
  }

  .registrazione-form .form-label {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .registrazione-form .form-control {
    min-height: 40px;
    font-size: 16px;
  }

  .checkbox-row .form-check-label {
    font-size: 15px;
  }

  .newsletter-copy {
    font-size: 15px;
    text-align: left;
  }

  .choice-item {
    font-size: 17px;
  }

  .btn-submit {
    min-height: 48px;
    max-width: 180px;
    font-size: 20px;
  }

  .required-note {
    font-size: 13px;
  }

  .contest-note {
    font-size: 13px;
  }

  .file-visual {
    min-height: 40px;
    font-size: 16px;
    padding: 0 8px 6px 12px;
  }

  .file-visual i {
    font-size: 18px;
  }
}
