@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap");

html {
  font-size: 14px;

  --body-font: "Inter", sans-serif;
  --heading-font: "Inter", sans-serif;

  --border-radius-btn: 8px;

  --primary-color: #272450;
  --primary-text-color: white;

  --secondary-color: #361dd1;
  --secondary-text-color: #ffffff;

  --tertiary-color: #ffffff;
  --tertiary-text-color: #262424;

  --action-color: var(--secondary-color);
  --action-text-color: var(--secondary-text-color);
  --primary-text-color: var(--primary-color);
  --error-color: #e52628;
  --overlay-color: rgb(from var(--primary-color) r g b / 0.5);
  --action-hollow-hover-color: rgb(from var(--secondary-color) r g b / 0.2);
  --action-hover-color: rgb(from var(--secondary-color) r g b / 0.87);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  height: 100vh;
}

form {
  min-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

h1 {
  font-family: var(--heading-font);
  font-size: 30px;
  font-weight: bold;
  text-align: left;
  color: var(--tertiary-text-color);
}

h2 {
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: bold;
  color: var(--tertiary-text-color);
  margin-top: 1em;
}

a {
  color: var(--tertiary-text-color);
  font-size: 14px;
}

p {
  color: #889aa4;
  font-size: 14px;
}

label {
  margin-top: 0.5em;
  font-size: 16px;
}

a.expand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  text-decoration: none;
  font-size: 16px;
  margin: 12px 0;
}

a.expand::after {
  content: "";
  padding: 6px;
  border: solid var(--action-color);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  display: inline-block;
  margin-left: 20px;
  margin-right: 5px;
}

a.button {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
}

.text-button {
  font-size: 16px;
  text-decoration: underline;
  color: var(--primary-text-color);
  display: inline-block;
  padding: 1em 0;
}

input:not([type="checkbox"]),
button,
a.button {
  border: #e5e5e5 solid;
  border-radius: var(--border-radius-btn);
  border-width: thin;
  width: 100%;
  padding: 0.5em;
  margin-top: 0.5em;
}

button,
a.button {
  border-radius: var(--border-radius-btn);
}

input[type="submit"],
button,
a.button {
  color: var(--action-text-color);
  background-color: var(--action-color);
}

input[type="submit"]:hover,
button:hover,
a.button:hover {
  background-color: var(--action-hover-color);
}

input[type="submit"].hollow,
button.hollow,
a.button.hollow {
  color: var(--action-color);
  background-color: var(--action-text-color);
  border: 1px solid var(--action-color);
}

input[type="submit"].hollow:hover,
button.hollow:hover,
a.button.hollow:hover {
  background-color: var(--action-hollow-hover-color);
}

a.continue-button {
  margin-top: 4em;
}

.checkbox-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.checkbox-container label {
  margin-left: 0.5em;
  margin-top: 0;
}

.powered-by {
  text-align: center;
}
.powered-by-logo {
  max-width: 100px;
  height: auto;
  text-align: center;
  align-self: center;
  margin-bottom: 10%;
}
.copyright {
  margin-bottom: 10%;
  text-align: center;
}

.message {
  max-width: fit-content;
  margin-bottom: 0;
}

.message.Error {
  color: var(--error-color);
}

.layout-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.layout-left {
  flex: 1;
  background: grey;
  overflow: hidden;
}

.layout-right {
  flex: 1;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.main-body-container {
  flex-grow: 1;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  padding: 10% 5%;
  overflow: auto;
  flex-direction: column;
  flex-shrink: 0;
  max-width: 500px;
}

.cover {
  height: 100%;
  padding: 10% 5%;
  background-color: white;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  position: relative;
  transform-origin: center;
}

.logo {
  width: 60%;
  display: block;
  margin: 0 auto;
}

.kratos-img {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.code-class {
  display: none;
}

.toggle-explanation {
  margin-top: 16px;
}

.kratos-text p,
.kratos-img p,
p.regular-text {
  color: var(--tertiary-text-color);
  font-size: 16px;
}

.kratos-text .kratos-text__value {
  background-color: #212529;
  color: white;
  align-self: stretch;
  text-align: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.popup {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--overlay-color);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.popup__content {
  background-color: white;
  padding: 16px;
  border-radius: var(--border-radius-btn);
  box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.5);
  max-width: 500px;
}

.popup:target {
  display: flex;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .layout-right {
    flex: 3;
  }

  .logo {
    width: auto;
    height: 60px;
  }

  .layout-container {
    flex-direction: column;
  }

  .cover {
    background-color: white;
    background-position: center;
    padding: 0;
    display: flex;
    align-items: center;
  }
}

/* Mobile */
@media (max-width: 425px) {
  .layout-right {
    flex: 5;
  }

  .logo {
    width: auto;
    height: 60px;
  }

  .layout-container {
    flex-direction: column;
  }

  .cover {
    background-color: white;
    background-position: center;
    padding: 0;
    display: flex;
    align-items: center;
  }

  form {
    min-width: auto;
  }

  .main-body-container {
    width: 100%;
    padding: 10%;
  }
}
