:is(#modal-form-login, #modal-form-registration) {
    top: var(--autvin-login-top, 0px);
    bottom: auto;
    height: 100vh;
    height: var(--autvin-login-height, 100dvh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 12px;
    background: rgb(14 21 17 / 48%);
}
:is(#modal-form-login .autvin-login__panel, #modal-form-registration .modal-dialog) {
    max-width: 450px;
    max-height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 26px clamp(16px, 5vw, 30px) 22px;
    border-radius: 15px;
    color: #19251e;
    box-shadow: 0 18px 60px rgb(0 0 0 / 20%);
}
:is(#modal-form-login .autvin-login__close, #modal-form-registration .modal-close) {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #405247;
    font-size: 28px;
    line-height: 1;
}
:is(#modal-form-login .autvin-login__close, #modal-form-registration .modal-close):hover { background: #edf3ee; }
.autvin-login__title,
#modal-form-registration .modal-title { margin: 0 38px 5px 0; font-size: 24px; line-height: 1.2; font-weight: 650; color: #19251e; }
.autvin-login__intro { margin: 0 32px 17px 0; color: #4b5a50; font-size: 14px; line-height: 1.4; }
.autvin-login__field { margin: 0 0 13px; }
.autvin-login__field label { display: block; margin: 0 0 5px; font-size: 14px; font-weight: 600; color: #19251e; }
#modal-form-login .autvin-login__field input,
#modal-form-registration .form-group .form-control {
    width: 100%; min-height: 48px; margin: 0; padding: 0 12px; border: 1px solid #839288;
    border-radius: 8px; background: #fff; color: #19251e; font-size: 16px;
}
:is(#modal-form-login, #modal-form-registration) :is(a, button, input):focus-visible { outline: 2px solid #326744; outline-offset: 2px; }
#modal-form-login .autvin-login__password { position: relative; }
#modal-form-login .autvin-login__password input { padding-right: 100px; }
#modal-form-login .autvin-login__toggle {
    position: absolute; top: 2px; right: 2px; min-width: 78px; height: 44px; padding: 0 8px;
    border: 0; border-radius: 7px; background: #eff4ef; color: #243e2d; font-size: 14px; font-weight: 600;
}
:is(#modal-form-login .autvin-login__submit, #modal-form-registration .form-submit [type=submit]) {
    display: block; width: 100%; min-height: 48px; margin: 16px 0 4px; padding: 9px 16px;
    border: 1px solid #34583e; border-radius: 8px; background: #406c4d; color: #fff; font-size: 16px; font-weight: 650;
}
:is(#modal-form-login .autvin-login__submit, #modal-form-registration .form-submit [type=submit]):hover { background: #34583e; }
:is(#modal-form-login .autvin-login__submit, #modal-form-registration .form-submit [type=submit]):disabled { opacity: .65; }
#modal-form-login .autvin-login__forgot {
    display: flex; justify-content: center; align-items: center; min-height: 44px; color: #2e5940;
    font-size: 14px; font-weight: 600; text-decoration: underline;
}
.autvin-login__notice[hidden] { display: none !important; }
.autvin-login__notice { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fbece9; color: #7f241e; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
html.autvin-login-open { overflow: hidden; }

#modal-form-registration .modal-dialog {
    width: 100%;
}

#modal-form-registration .modal-close {
    display: grid;
    place-items: center;
}

#modal-form-registration .modal-title,
#modal-form-registration .modal-sub-title {
    text-align: left;
}

#modal-form-registration .modal-form {
    margin-top: 17px;
}

#modal-form-registration .form-group {
    margin-bottom: 13px;
}

#modal-form-registration .form-submit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

#modal-form-registration .form-submit span {
    margin-block: 4px;
    text-align: center;
}

#modal-form-registration .form-submit a {
    color: #2e5940;
    font-weight: 600;
    text-decoration: underline;
}

#modal-form-registration .form-submit [type=submit] {
    margin-top: 8px;
}

#account-login #content > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(16px, 3vw, 32px);
    margin-inline: 0;
}

#account-login #content > .row > .col-sm-6 {
    width: auto;
    min-width: 0;
    padding: 0;
}

#account-login #content > .row::before,
#account-login #content > .row::after {
    display: none;
}

#account-login #content > .row .well {
    margin: 0;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 14px;
}

#account-login .well h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.3vw, 28px);
    line-height: 1.2;
}

#account-login .well p {
    max-width: 58ch;
}

#account-login .well .form-group {
    margin-bottom: 16px;
}

#account-login .well .control-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

#account-login .well .form-control {
    min-height: 48px;
    border-radius: 8px;
    font-size: 16px;
}

#account-login .well .btn {
    min-height: 46px;
    border-radius: 8px;
}

#account-login .well form .btn {
    width: 100%;
    margin-bottom: 12px;
}

#account-login .well #input-password + a {
    display: inline-block;
    margin-top: 8px;
    text-decoration: underline;
    text-underline-offset: .15em;
}

#account-login .well :is(a, input):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    #account-login #content > .row {
        grid-template-columns: minmax(0, 1fr);
    }
}
