.form {
    height: 100vh;
}

.form__background {
    width: 100%;
    height: 100vh;
    background-color: #fafafa;
}

.form__background > video,
.form__background > img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.form__wrapper {
    padding: 20px 30px;
    height: 100vh;
    overflow-y: overlay;
}

.form__area {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form__logo {
    display: block;
    text-align: center;
}

.form__title {
    font-size: 40px;
    text-align: center;
    letter-spacing: 0.8px;
    margin-bottom: 0;
    margin-left: 10px;
    font-family: var(--heading-font);
}

.form__group {
    margin-bottom: 16px;
}

.form__label {
    font-size: 17px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.form__input {
    width: 100%;
    font-size: 14px;
    padding: 12px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.form__input:focus {
    border-color: var(--primary-color);
}

.form__error {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: 13px;
}

.form__error.invalid,
.form__exist.invalid  {
    color: #ed4337;
}

.form__exist {
    text-align: center;
}

.form__submit {
    margin-top: 26px;
    width: 100%;
    border-radius: 8px;
}

.form__other {
    margin-top: 14px;
    text-align: center;
}

.form__link {
    color: var(--primary-color);
}

.form__link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.form__loading {
    margin-left: 7px;
    display: none !important;
}

.form__submit.loading .form__loading {
    display: block !important;
    animation: loading linear 0.2s infinite;
}

.form__text {
    width: 100%;
    resize: none;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 12px;
    outline: none;
    min-height: 70px;
    max-height: 120px;
}

.form__text:focus {
    border-color: var(--primary-color);
}

@keyframes loading {
    from {
        transform: rotate(0);
    } to {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width: 575px) {
    .form__wrapper {
        overflow-y: auto;
    }

    .form .form__header {
        flex-direction: column;
    }
}