@font-face {
    font-family: Nunito;
    src: url(../assets/fonts/Nunito.ttf);
}

@font-face {
    font-family: Rubik;
    src: url(../assets/fonts/Rubik.ttf);
}

a:visited,
a:link {
    text-decoration: none;
}

:root {
    --text-color: hsl(180, 21%, 14%);
    --background-color: azure;
    --font-family: Nunito;
    --font-weight: 500;
}

:focus {
    outline: none;
    border: none;
    text-decoration-style: none;
}

::placeholder {
    font-weight: var(--font-weight);
}

*:not(html) {
    margin: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    -webkit-tap-highlight-color: transparent;
    /* border: 1px solid black; */
}

html {
    height: 100dvh;
}

body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {

    background-color: transparent;
    background: var(--bg-color);
    flex-grow: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 100%;
}

@media only screen and (max-width: 768px) {
    main {
        grid-template-columns: 0 100%;
    }
}

#image {
    background-color: azure;
    background-image: url(../assets/images/signup.jpg);
    background-position: left;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-right-radius: 64px;
    border-top-right-radius: 64px;
    overflow-x: hidden;
    box-shadow: -2px -2px 16px rgb(110, 110, 110) inset;
}

#text {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    backdrop-filter: brightness(75%);
}

@media only screen and (max-width: 768px) {
    #text {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .create-your {
        font-size: 2rem;
    }

    #get-started-text {
        font-size: 1rem;
    }
}

.create-your,
#get-started-text {
    color: hsl(180, 88%, 90%);
    text-align: center;
    font-weight: 700;
}

#wcwh {
    position: relative;
    top: 12%;
    font-size: 2rem;
}

.create-your {
    font-size: 3rem;
}

#get-started-text {
    font-size: 1.5rem;
}

#choose-container,
#form-container {
    display: grid;
    justify-items: center;
}

#form-container {
    grid-template-rows: 10% 10% 80%;
}

#choose-container {
    grid-template-rows: 28% 10% 30%;
}

#header {
    padding: 16px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}

#header>a {
    height: min-content;
}

#header img {
    filter: hue-rotate(335deg);
}

@media only screen and (max-width: 768px) {
    #header {
        justify-content: flex-start;
    }
}

#signup-text {
    width: 100%;
    font-weight: 800;
    text-align: center;
}

#account-type-chooser {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: max-content;
    width: 60%;
    gap: 16px;
    row-gap: 16px;
    align-self: center;
}

.account-selector-button {
    border: none;
    border-radius: 8px;
    box-shadow: 2px 2px 0px rgb(114, 114, 114);
    height: 48px;
    width: 256px;
    background-color: transparent;
    background-image: linear-gradient(60deg, rgb(116, 194, 187), rgb(107, 237, 247));
    cursor: pointer;
    transition: all 0.3s;
}

.account-selector-button:hover {
    transform: scale(1.02);
}

.account-selector-button:active {
    transform: scale(1.02);
    box-shadow: 0 0 0 grey;
}

#form-container>form {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.form-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
    max-width: 512px;
    width: 100%;
    height: clamp(64px, 10%, 96px);
    min-height: 48px;
}

.form-field>label {
    margin-bottom: 4px;
}

.small-inputs {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.small-inputs>label {
    margin-right: 8px;
}

#age-wrapper,
#blood-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 48px;
}

#blood-wrapper {
    align-items: flex-end;
}

#blood-wrapper>label {
    width: 128px;
    margin-right: 0;
}

#age-wrapper>input,
#blood-wrapper>select,
#dept-selector,
.form-field>input {
    height: 100%;
    border: none;
    padding: 0 4%;
    border-radius: 8px;
    box-shadow: 0 0 4px hsl(180, 41%, 56%) inset;
    transition: all 0.2s;
}

.form-field>input {
    width: 100%;
}

#dept-selector {
    height: clamp(48px, 10%, 64px);
    font-size: 1.1rem;
}

#age-blood {
    align-items: space-between;
}

#blood,
#dept-selector>select,
#age-wrapper>input {
    width: 128px;
}

#blood,
#dept-selector {
    font-weight: bold;
    cursor: pointer;
}

#blood:hover,
#age-wrapper>input:hover,
#dept-selector:hover,
.form-field>input:hover {
    box-shadow: 0 0 4px hsl(180, 41%, 56%);
}

#gender-selector,
#dept-selector-container {
    display: flex;
    align-items: center;
    border: 1px solid rgb(98, 197, 197);
    padding: 16px 8px;
    border-radius: 8px;
    box-shadow: 0 0 2px hsl(180, 33%, 50%) inset;
    height: 8%;
    min-height: 48px;
}

#gender-selector>label {
    font-size: 1.1rem;
}

.gender-label {
    margin: 0 8px 0 0;
    font-size: 1.2rem;
}

.gender-label,
#male,
#female {
    cursor: pointer;
    accent-color: hsl(192, 31%, 53%);
}

#submit-btn {
    width: 256px;
    height: 48px;
    margin-top: 16px;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    background-image: linear-gradient(45deg, hsl(194, 91%, 57%), hsl(177, 100%, 81%));
    box-shadow: 2px 2px 0px hsl(180, 34%, 52%);
    cursor: pointer;
    transition: all 0.2s;
}

#submit-btn:hover {
    transform: scale(1.03);
}

#submit-btn:active {
    box-shadow: 0 0 0 black;
}