@font-face {
    font-family: 'logo-section';
    src: url('static/fonts/Oi-Regular.woff2') format('woff2'),
        url('static/fonts/Oi-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'paragraph-google-sans';
    src: url('static/fonts/GoogleSansCode-Regular.woff2') format('woff2'),
        url('static/fonts/GoogleSansCode-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.25;
  font-family: 'paragraphs-google-sans', Arial, Helvetica, sans-serif;

  --logo-font-color: #fff;
  --form-background-color: #fff;
}

main {
  width: 100vw;
  display: flex;
  justify-content: center;
  height: 100vh;
}

.image-section {
  flex: 2 2 auto;
  position: relative;
}

.logo-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  position: absolute;
  left: 0;
  top: 40%;
  height: 30%;
  background: rgb(0, 0, 0, 30%);
  width: 100%;
}

.logo-container .big-logo {
  flex: 1 1 auto;
  height: 100%;
  filter: invert();
}

.logo-container .site-title {
  flex: 3 3 auto;
  color: var(--logo-font-color);
  font-family: 'logo-section', Arial, Helvetica, sans-serif;
  font-size: 3rem;
}

.image-section img {
  height: 110%;
}

.functional-section {
  flex: 5 5 auto;
  padding: 1rem;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  margin-top: 1.5rem;
}

.form-row {
  display: flex;
  gap: min(2.5rem, 5%);
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.form-control {
  display: flex;
  position: relative;
  gap: .3rem;
  flex-direction: column;
  max-width: 50%;
  flex: 1 1 100px;
  max-width: 300px;
  margin-bottom: .7rem;
}

.form-inputs-section {
  padding: 0.5rem 1.5rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 1px 1px 10px #0000003e;
  border-radius: 5px;
}

input {
  font-size: 1rem;
  font-family: inherit;
  padding: 0.5rem;
  border: 1px solid #0000003e;
  border-radius: 3px;
  position: relative;
}

input:user-invalid {
  border-style: dashed;
  border-color: rgba(255, 94, 94, 0.491);
  border-width: 2px;
}

.form-control:has(input:user-invalid)::before {
  position: absolute;
  content: "";
  right: -16px;
  top: calc(50% + 2px);
  background-image: url(static/images/incorrect-input.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: .8rem;
  height: .8rem;
}

input:user-valid {
  border-color: rgba(23, 126, 0, 0.684);
  border-width: 2px;
}

.form-control:has(input:user-valid)::before {
  position: absolute;
  content: "";
  right: -18px;
  top: calc(50% + 2px);
  background-image: url(static/images/correct-input.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 1rem;
  height: 1rem;
}

.form-control > label {
  color: #0000009a;
  text-transform: uppercase;
  font-size: .8rem;
}

.password-instructions {
  color: #000000a4;
}

.password-instructions .ruleset {
  margin-left: 1rem;
}

.password-instructions .instruction {
  --bullet-color: #0000009a;
  position: relative;
}

.password-instructions .instruction::before {
  content: "•";
  color: var(--bullet-color);
  position: absolute;
  left: -1.2rem;
  top: -2px;
  font-size: 1.5rem;
}


.motto,
.login-redirect {
  margin-left: 1rem;
}

.motto {
  font-size: 1.5rem;
  max-width: 60%;
}

.form-control input:focus {
  border: 2px solid black;
  box-shadow: 1px 1px 10px #0000003e;
}

.functional-section button {
  margin: 0;
  font-family: inherit;
  font-weight: bold;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.654);
  border-radius: 4px;
  font-size: 1.1rem;
  border: 3px solid #00000046;
  color: #000000e8;
  box-shadow: 3px 3px 10px #0000003e;
}

.functional-section button:hover {
  /* background-color: rgba(236, 236, 236, 0.939); */
  box-shadow: 3px 3px 5px #0000003e;
}

.functional-section button:active {
  transform: translateY(1px) translateX(1px);
  box-shadow: 2px 2px 5px #0000003e;
}