* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "proxima-nova";
  color: #333d47;
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 550px) {
  body {
    background-image: url("../images/bg-big.webp");
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* Typography ----------------------------------------- */

a {
  font-weight: 600;
  text-decoration: underline;
  color: #717171;
  transition: color 100ms;
}

a:hover {
  color: #333d47;
}

p {
  margin-top: 0;
  margin-bottom: 15px;
}

small {
  font-size: 0.875rem;
}

h1,
h2 {
  font-family: "proxima-nova";
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 20px;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
}

@media (min-width: 550px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Lists ----------------------------------------------- */

ol,
ul {
  margin-top: 0;
  margin-bottom: 20px;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

/* Utilities ------------------------------------------- */

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

.align-right {
  text-align: right;
}

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

/* Container ------------------------------------------- */

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 550px) {
  .container {
    justify-content: space-between;
  }
}

/* Main header ----------------------------------------- */

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  padding: 25px 0;
  background-color: white;
}

@media (min-width: 550px) {
  .header {
    justify-content: space-between;
    margin-bottom: initial;
    padding: 45px 60px;
    background-color: transparent;
    color: white;
  }
}

/* Main footer ----------------------------------------- */

.footer {
  padding: 40px 20px 30px;
  background-color: #333d47;
  color: #c1c1c1;
}

.footer a {
  color: #c1c1c1;
  text-decoration: underline;
}

.footer .logo__image {
  fill: white;
}

.footer__container {
  max-width: 1160px;
  margin: 0 auto;
}

.footer__content {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 30px;
}

.footer__content li {
  font-size: 0.875rem;
  flex: 1 0 100%;
  margin: 5px 0;
}

@media (min-width: 550px) {
  .footer .logo {
    margin: 0 auto;
  }

  .footer__content {
    justify-content: center;
  }

  .footer__content li {
    margin: 0 15px 15px 0;
    flex: 0 0 auto;
  }
}

@media (min-width: 1092px) {
  .footer {
    height: 220px;
    padding: 80px 20px;
  }

  .footer .logo {
    margin: 0;
  }

  .footer__content {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
}

/* Navigation ------------------------------ */

.navigation {
  position: absolute;
  left: 25px;
}

.nav-link {
  text-decoration: none;
  font-weight: 400;
  color: #717171;
}

.nav-link::before {
  content: url("../images/arrow-left-dark.svg");
  display: inline-block;
  width: 15px;
  margin-right: 5px;
}

@media (min-width: 550px) {
  .navigation {
    display: block;
    position: relative;
    left: unset;
  }

  .nav-link,
  .nav-link:hover {
    color: white;
  }

  .nav-link::before {
    content: url("../images/arrow-left.svg");
  }

  .nav-link::after {
    content: " naar website";
    display: inline;
    position: relative;
    color: white;
  }
}

/* Logo ------------------------------------------------ */

.logo {
  display: flex;
  width: 99px;
}

.logo__image {
  fill: #333d47;
}

@media (min-width: 550px) {
  .logo {
    width: 140px;
  }

  .logo__image {
    fill: white;
  }
}

/* Main content ---------------------------------------- */

.content {
  flex-grow: 1;
  width: 100vw;
  max-width: 280px;
  margin: 0 auto;
  padding-bottom: 40px;
  text-align: center;
  background-color: white;
}

.content__header {
  margin-bottom: 20px;
}

.content__header > svg {
  width: 34px;
  height: 31px;
  margin-bottom: 10px;
}

.content__header > h1 {
  margin-bottom: 10px;
  line-height: 1.1;
}

.content__header > p {
  font-size: 0.875rem;
}

@media (min-width: 550px) {
  .content {
    flex-grow: 0;
    width: 440px;
    max-width: unset;
    margin: 0 auto 50px;
    padding: 30px 60px;
    box-shadow: 0 0 8px 0 rgba(51, 61, 71, 0.12);
  }

  .content--wide {
    width: 500px;
  }

  .content.update-password {
    /* needs to be bigger to fit 'Nieuw wachtwoord' */
    width: 500px;
  }
}

/* Forms ----------------------------------------------- */

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

input[type="text"],
input[type="password"] {
  -webkit-appearance: none;
  background-color: #fcfcfc;
  border: 0;
  box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.12);
  color: #717171;
  font-size: 1rem;
  height: 50px;
  outline: 0;
  padding: 10px 20px;
  width: 100%;
}

input::placeholder {
  color: #c1c1c1;
}

input[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  font-family: "proxima-nova";
  padding: 0 20px;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
  color: white;
  border: 1px solid #333d47;
  background-color: #333d47;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  height: 50px;
  margin-top: 15px;
  margin-bottom: 25px;
}

input[type="submit"]:hover {
  background-color: #50606f;
  border-color: #50606f;
}

input[type="submit"]:disabled {
  background-color: #c1c1c1;
  border-color: #c1c1c1;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
  cursor: not-allowed;
}

.input-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 15px;
}

.input-wrapper::after {
  content: "";
  position: absolute;
  display: block;
  height: 1px;
  left: 50%;
  width: 1px;
  background-color: transparent;
  transition: all 0.2s ease-in;
}

.input-wrapper:focus-within:not(.has-errors)::after {
  background-color: #333d47;
  width: 100%;
  left: 0;
}

.input-wrapper.has-errors::after {
  background-color: #ea6d6d;
  width: 100%;
  left: 0;
}

.input-error {
  display: none;
  position: relative;
  top: -5px;
  margin-bottom: 5px;
  font-size: 0.875rem;
  color: #ea6d6d;
}

.input-wrapper.has-errors + .input-error {
  display: block;
}

/* Messages -------------------------------------------- */

.message {
  width: 100%;
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  color: #333d47;
}

.message--success {
  color: #73a07d;
}

.message--warning {
  color: #f1b95b;
}

.message--error {
  color: #ea6d6d;
}

form > .message {
  margin: 0;
}

/* Links -------------------------------------------- */

.forgot-password-link,
.lost-authenticator-link {
  text-decoration: none;
}

.forgot-password-link::after,
.lost-authenticator-link::after {
  content: url("../images/arrow-right.svg");
  display: inline-block;
  width: 15px;
  margin-left: 17px;
  position: relative;
  top: 1px;
}

.go-back-link {
  text-decoration: none;
}

.go-back-link::before {
  content: url("../images/arrow-left-dark.svg");
  display: inline-block;
  width: 15px;
  margin-right: 5px;
}

/* Other -------------------------------------------- */

.totp-switch-mode {
  margin-bottom: 20px;
}

.confused-chicken {
  width: 35px;
  height: 67px;
  margin-bottom: 20px;
}
