:root {
    --create-account-form-width: 466px;
    --create-account-form-height: 330px;
}
.main {
    display: flex;
    margin-top: var(--navbar-height);
    height: calc(100dvh - var(--navbar-height));
    width: 100%;
}
.image {
    height: 100%;
    flex: 1;
    background: url("../images/register/register.png") left 20% top 30% / cover;
}
.form__container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mask {
    width: var(--create-account-form-width);
    overflow: hidden;
}
.create-account-form {
    height: var(--create-account-form-height);
    display: flex;
    gap: 100px;
    transition: 0.5s;
}
.create-account-form.scrolled {
    transform: translateX(-566px);
}
.screen1, .screen2 {
    width: var(--create-account-form-width);
    flex: none;
    display: flex;
    flex-direction: column;
}
.first-name-last-name-container {
    display: flex;
    gap: 18px;
}
.first-name-container,
.last-name-container {
    flex: 1;
}
.title {
    font: 600 24px Quicksand, sans-serif;
    margin-bottom: 15px;
}
label {
    font: var(--h5);
}
.first-name-last-name-container path {
    stroke: #868889;
}
.input-container {
    position: relative;
}
.input-container svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}   
.envelope-icon, .user-icon {
    left: 10px;
}
.padlock-icon {
    left: 11px;
}
.register-eye-icon {
    right: 11px;
    cursor: pointer;
} 
.first-name-container,
.last-name-container,
.email-container,
.password-container,
.association-container,
.membership-number-container {
    margin-top: 6px;
}
input.first-name, input.last-name, input.email, input.password {
    padding-left: 32px;
}
.email-error-container {
    position: relative;
}
.email-exists {
    position: absolute;
    top: 0;
}
.subtitle {
    margin-bottom: 15px;
}
.find-out-more {
    color: var(--app-teal);
    text-decoration: underline;
}
.find-out-more:hover {
    cursor: pointer;
    text-decoration: none;
}
.association {
    margin-top: 3px;
}
.membership-number-container {
    visibility: hidden;
}
input.error, textarea.error, .choose-file--container.error {
    border-color: red;
}
p.error {
    visibility: hidden;
    color: red;
    font: var(--h5);
}
.spacer {
    flex: 1;
}
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.continue {
    align-self: end;
    width: auto;
    font: 700 18px Inter, sans-serif;
    color: white;
    padding: 5px 15px;
    background-color: #006072;
    border: none;
    border-radius: 999em;
    cursor: pointer;
}
button {
    margin: 1px; /* this is to prevent the mask clipping the outline on hover */
}
h5 {
    margin-top: 7px;
}
.find-out-more-popup {
    display: none;
    width: min(85%, 800px);
    height: fit-content;
    padding: 40px;
    position: fixed;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: white;
    border: 1px black solid;
    box-shadow: 0 0 20px 4px #888888;
}
.find-out-more-popup__title {
    color: var(--app-teal);
}
.find-out-more-popup h4 {
    margin-top: 20px;
}
.find-out-more-popup__close {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 10px;
    background-color: transparent;
    border: none;
}
.find-out-more-popup__close:hover {
    padding: 9px;
    cursor: pointer;
}
.find-out-more-popup__close:active {
    padding: 10px;
}
.find-out-more-popup__close:hover path {
    stroke: var(--app-teal);
}
.find-out-more-popup__close > svg {
    width: 100%;
    height: 100%;
}

@media(max-width: 1024px) {
    .main {
        margin-top: var(--navbar-height-mobile);
        height: calc(100dvh - var(--navbar-height-mobile));
    }
    .image {
        display: none;
    }
    .form__container {
        width: 100%;
        justify-content: center;
        padding-left: 0;
        overflow-y: scroll;
    }
    form {
        width: min(304px, var(--content-width));
    }
}