@font-face {
    font-family: "NorseBold";
    src: url(/Norsebold.otf) format("opentype");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(/background-desktop.jpg);
}
@media (max-width: 665px) {
  body {
    background-image: url(/background-phone.jpg);
  }
}
@media (max-width: 1023px) {
  body {
    background-image: url(/background-tablet.jpg);
  }
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  text-align: center;
  color: #fff;
  padding: 2rem;
}

main {
  display: flex;
}

.main__box__empty {
  flex: 4 0 auto;
}

.main__box__formContainer {
  flex: 0.25 0 auto;

  background: #fff;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.field {
  flex: 1 0 0;
}

.optionBox {
  flex: 3 0 0;
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.loginBox a {
  text-decoration: underline;
}

label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input {
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input.valid {
  border: 1px solid #28a745;
}

input.invalid {
  border: 1px solid #dc3545;
}

button {
  background: #0984e3;
  color: white;
  border: none;
  padding: 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #74b9ff;
}

.footer {
  display: flex;
  flex-direction: column;
  color: #fff;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 5rem;
}
@media (max-width: 568px) {
  .footer { 
    margin-top: 4rem;
  }
}

@media (max-width: 568px) {
  .footer__navLinks { 
    flex-direction: column;
  }
}

.footer__navLinks {
  display: flex;
  align-self: center;
  list-style: none;
}
@media (max-width: 568px) {
  .footer__navLinks { 
    flex-direction: column;
  }
}

.footer__link {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.footer__box__copyrightContainer {
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer__link,
.footer__copyright {
  font-weight: 600;
}

#popupBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.137);
  display: flex;
  align-items: center;
  justify-content: center;
}

#popupBackground.hidden {
  display: none;
}

#popupContainer {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  text-align: center;
}
#popupContainer.hidden {
  display: none;
}

#popupHeading.failure {
  color: #dc3545;
}
#popupHeading.success {
  color: #28a745;
}

#closePopup {
  color: #fff;
}
#closePopup.failure {
  background-color: #dc3545;
}
#closePopup.success {
  background-color: #28a745;
}
