@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap");

:root {
  --base-color: #386237;
  --accent-color: #faf8eb;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-family: Karla, sans-serif;
  font-size: 13pt;
  color: var(--base-color);
  text-align: center;
}

.title-text {
  color: #F8EFE0;
  font-size: 2.5em;
  margin: .3em;
}

body {
  background-image: url(../public/background.jpg);
  background-size: cover;
  background-position: right;
  min-height: 100vh;
  overflow-y: auto;
}

.wrapper {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4.2px);
  -webkit-backdrop-filter: blur(4.2px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 100vh;
  width: max(40%, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

form {
  width: max(35%, 400px);
  margin-top: 0;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vh;
}

.input-block {
  width: 90%;
  display: flex;
  flex-direction: column;
}

.label-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px 8px 0 0;
  background-color: var(--base-color);
  color: var(--accent-color);
  font-weight: 600;
}

.label-header svg {
  height: 1em;
  width: 1em;
  fill: var(--accent-color);
  vertical-align: middle;
}

form input {
  box-sizing: border-box;
  background-color: #faf8eb;
  flex-grow: 1;
  min-width: 0;
  height: 45px;
  border-radius: 0 0 8px 8px;
  padding: 1em;
  font: inherit;
  border: 2px solid var(--accent-color);
  border-top: none;
  transition: 150ms ease;
}

form input:hover {
  border-color: var(--base-color);
}

form input:focus {
  outline: none;
  border-color: var(--base-color);
}

form button {
  font-size: 0.8em;
  margin-top: 10px;
  border-radius: 1000px;
  padding: 0.85em 4em;
  background-color: var(--base-color);
  color: var(--accent-color);
  border: 3px solid var(--base-color);
  font-weight: 600;
  cursor: pointer;
  transition: 150ms ease;
}

form button:hover {
  border-color: var(--accent-color);
}

a {
  text-decoration: none;
  color: var(--base-color);
}

a:hover {
  text-decoration: underline;
}

p {
  font-size: 18px;
}

.role-selection {
  background: var(--accent-color);
  width: 100%;
  border-radius: 0 0 8px 8px;
  padding: 10px;
  box-sizing: border-box;
}

.role-options {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}

.role-option {
  flex: 1;
  min-width: 0;
}

.role-option input[type="radio"] {
  display: none;
}

.role-option-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background-color: var(--accent-color);
  border: 2px solid var(--base-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  color: var(--base-color);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

.role-option-box:hover {
  background-color: rgba(56, 98, 55, 0.1);
}

.role-option-box svg {
  margin: 0 0 8px 0;
  width: 24px;
  height: 24px;
  fill: var(--base-color);
  transition: all 0.2s ease;
}

.role-option input[type="radio"]:checked+.role-option-box {
  background-color: var(--base-color);
  color: var(--accent-color);
}

.role-option input[type="radio"]:checked+.role-option-box svg {
  fill: var(--accent-color);
}

.footer-text {
  color: var(--accent-color);
  margin-bottom: 0;
}

@media(max-width: 1251px) {
  .title-text {
    font-size: 1.9em;
  }
}

@media (max-height: 850px) {
  .wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}


.label-header {
  position: relative;
  z-index: 1;
}

.input-block {
  min-height: 30px;
}

@media (max-width: 768px) {
  .wrapper {
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    left: 0;
    right: 0;
  }

  form {
    width: 100%;
  }

  .role-option {
    width: 90%;
    max-width: 300px;
  }
}