body {
  background-image: url("../images/login-background.png");
  background-color: #fae5cc;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container-fluid.d-flex.justify-content-center {
  flex-grow: 1;
}

.form-width {
  max-width: 600px;
  width: 100%;
  height: 80vh;
  border-radius: 3rem;
  background-color: #fff6eb;
  margin: 3rem auto 5rem;
}

.form-outline .form-control:focus ~ .form-notch .form-notch-leading {
  border-top: 0.125rem solid #d48423;
  border-bottom: 0.125rem solid #d48423;
  border-left: 0.125rem solid #d48423;
  box-shadow:
    -1px 0px 0px 0px #d48423,
    0px 1px 0px 0px #d48423,
    0px -1px 0px 0px #d48423;
}
.form-outline .form-control:focus ~ .form-notch .form-notch-middle {
  border-bottom: 0.125rem solid;
  border-color: #d48423;
  border-top: none;
  box-shadow: 0 1px 0 0 #d48423;
}

.form-outline .form-control:focus {
  background-color: #fff6eb;
}

.form-outline .form-control:focus ~ .form-notch .form-notch-trailing {
  background-color: rgba(255, 246, 235, 0);
  border-color: currentcolor currentcolor currentcolor #e4a11b;
  border-bottom: 0.125rem solid #d48423;
  border-right: 0.125rem solid #d48423;
  border-top: 0.125rem solid #d48423;
  box-shadow:
    1px 0 0 0 #d48423,
    0 -1px 0 0 #d48423,
    0 1px 0 0 #d48423;
}

.form-outline .form-control:focus ~ .form-label {
  color: #d48423;
}

.form-outline .form-control.active ~ .form-notch .form-notch-middle,
.form-outline .form-control:focus ~ .form-notch .form-notch-middle {
  border-top: 1px transparent;
}

.form-check-input:checked {
  background-color: #d48423 !important;
  border-color: #d48423 !important;
}

.btn-primary {
  background-color: #d48423 !important;
  border-color: #d48423 !important;
}

.btn-primary:hover {
  background-color: #c3680b !important;
  border-color: #c3680b !important;
}

.text-center a {
  color: #d48423;
  text-decoration: none;
}

.text-center a:hover {
  color: #c3680b;
  text-decoration: underline;
}

.form-padding {
  padding-top: 6rem;
  padding-left: 6rem;
  padding-right: 6rem;
}

.alert {
  text-align: center;
}

.welcome-text {
  text-align: center;
  color: #d48423;
  font-size: 6rem;
  font-family: campana;
  margin: -6rem 1.3rem 0 0;
  padding-bottom: 1rem;
}

.login-text {
  color: #c3680b;
  font-size: 15px;
  font-family: inter;
  font-weight: bolder;
  text-align: center;
  margin-top: -2.5rem;
  margin-bottom: 1.5rem;
}

/* --- Responsive Adjustments --- */

/* Mobile (xs - <576px) */
@media (max-width: 575.98px) {
  main {
    padding: 1.5rem;
  }
  .bottom-text {
    font-size: 0.8rem;
  }
  .form-padding {
    padding-top: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .welcome-text {
    font-size: 4rem;
    margin: -1rem 0 0 0;
    margin-bottom: -2.5rem;
  }
  .login-text {
    font-size: 14px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  .form-width {
    height: auto;
    margin: 1rem auto;
    border-radius: 1.5rem;
  }
}

/* Small devices (sm - >=576px and <768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .bottom-text {
    font-size: 0.8rem;
  }
  .form-padding {
    padding-top: 3rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .welcome-text {
    font-size: 0.5rem;
    margin: -1.5rem 0 0 0;
  }
  .login-text {
    font-size: 15px;
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
  }
  .form-width {
    height: auto;
    margin: 2rem auto;
    border-radius: 2rem;
  }
}

/* Medium devices (md - >=768px and <1024px) - iPad View */
@media (min-width: 768px) and (max-width: 1024px) {
  .form-padding {
    padding-top: 4rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .welcome-text {
    font-size: 4.5rem;
    margin: -3rem 0 0 0;
  }
  .login-text {
    font-size: 16px;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
  }
  .form-width {
    max-width: 500px;
    height: auto;
    margin: 2.5rem auto;
    border-radius: 2.5rem;
  }
}

/* Large devices (lg - >=1025px) - Desktop View */
@media (min-width: 1025px) {
  .form-padding {
    padding-top: 6rem;
    padding-left: 6rem;
    padding-right: 6rem;
  }
  .welcome-text {
    font-size: 6rem;
    margin: -6rem 1.3rem 0 0;
  }
  .login-text {
    font-size: 15px;
    margin-top: -2.5rem;
    margin-bottom: 1.5rem;
  }
  .form-width {
    max-width: 600px;
    height: 80vh;
    margin: 3rem auto 5rem;
    border-radius: 3rem;
  }
}
