@font-face {
    font-family: "Spezia Medium";
    font-weight: 400;
    src: url('../fonts/Spezia-Medium.otf');
}

@font-face {
  font-family: "EB Garamond";
  font-weight: 400;
  src: url('../fonts/EBGaramond-Regular.ttf');
}

body {
  margin: 0;
  padding: 0;
  font-family: Spezia Medium;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

body * {
  box-sizing: border-box;
}

.section {
  font-family: "Spezia Medium", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #161617;
}

.left-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
}

.right-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background: url('../img/background-keycloak.jpg') no-repeat center center/cover;
}

.right-section:before {
  content: "";
  background: linear-gradient(to bottom, rgba(22, 22, 23, 1), rgba(22, 22, 23, 0));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.logo {
  width: 108px;
  height: 18px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.logo svg {
  height: 100%;
}

.form-container {
  padding: 20px 30px;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 992px) {
  .form-container {
    margin-top: auto;
    margin-bottom: auto;
    transform: translateY(-16%);
  }
  
  .logo {
    margin-bottom: 0;
  }
}

.form-container h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: "EB Garamond", serif;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: -.05em;
  text-align: center;
  color: #fff;
}

h2 + * {
  margin-top: 1.75rem;
}

.form-headline {
  margin-bottom: 2.25rem;
}

@media (min-width: 992px) {
  
}

.form-group + .form-group {
  margin-top: 1.25rem;
}

.form label {
  width: 100%;
  display: block;
  margin-bottom: 4px;
  font-family: "Spezia Medium";
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: left;
}

.form input {
  width: 100%;
  height: 2.625rem;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  margin: 0;
  border: 1px solid #3E3E3E;
  border-radius: .5rem;
  font-size: 1rem;
  font-family: "Spezia Medium";
  background-color: #232324;
  color: #fff;
  outline: 2px solid transparent;
  outline-offset: 0px;
}

.form input:hover,
.form input:focus {
  background-color: #2E2E2F;
}

.form input::placeholder {
  color: #A7A7A7;
}

.form input::-webkit-input-placeholder {
  color: #A7A7A7;
}

.form input::-moz-placeholder {
  color: #A7A7A7;
}

.form input:-ms-input-placeholder {
  color: #A7A7A7;
}

.form input::-ms-input-placeholder {
  color: #A7A7A7;
}

.form .input-group {
  position: relative;
}

.form .input-group input {
  padding-right: 42px;
}

.form .input-group .button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  background-color: transparent;
  color: #A7A7A7;
  cursor: pointer;
}

.form .input-group .button:hover {
  background-color: #2E2E2F;
}

.form .input-group input[type="password"] + .button svg:last-child {
  display: none;
}

.form .input-group input[type="text"] + .button svg:first-child {
  display: none;
}

.form button[type="submit"],
.form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #13F287;
    color: #161617;
    border: none;
    border-radius: 8px;
    font-family: "Spezia Medium";
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    cursor: pointer;
  }

.form button[type="submit"]:hover,
.form input[type="submit"]:hover {
  background-color: #12CE74;
}

.form-info {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: #A7A7A7;
}

.form .input-error {
  display: block;
  margin-top: .25rem;
  font-size: 13px;
  color: #A7A7A7;
}

.back-to-sign-in-link,
.forgot-password-link {
  display: block;
  margin-top: .5rem;
  margin-bottom: 1.25rem;
  font-size: 14px;
  color: #13F287;
  text-decoration: none;
}

.back-to-sign-in-link:hover,
.forgot-password-link:hover {
  color: #12CE74;
}

.back-to-sign-in-link {
  text-align: center;
}

.transition-colors,
.checkbox-group input[type="checkbox"] + span {
    transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.checkbox-group label {
    position: relative;
    display: inline-block;
    padding-left: 1.875rem;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 1.625;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] + span {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 0.375rem;
    border: 1px solid #3E3E3E;
    background-color: #232324;
}

.checkbox-group input[type="checkbox"]:checked + span {
    background-color: #2E2E2F;
    border-color: #3E3E3E;
}

.checkbox-group input[type="checkbox"]:checked + span::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group label:hover input[type="checkbox"] + span {
    background-color: #2E2E2F;
}

.checkbox-group label:active input[type="checkbox"] + span {
    background-color: #2E2E2F;
}

.checkbox-group input[type="checkbox"] + span {
    visibility: visible;
}

@media (min-width: 992px) {
  .section {
    display: flex;
    flex-direction: row;
  }
  .left-section {
    width: 50%;
  }
  .right-section {
    position: relative;
    width: 50%;
    height: auto;
  }
  .right-section:before {
    background: linear-gradient(to right, rgba(22, 22, 23, 1), rgba(22, 22, 23, 0));
  }
  .form-container h2 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1200px) {
  .left-section {
    width: 40%;
  }
  .right-section {
    width: 60%;
  }
}

@media (min-width: 1440px) {
  .left-section {
    width: 36%;
  }
  .right-section {
    width: 64%;
  }
}