html.pl-auth-modal-open {
    overflow: hidden;
}

.site-header .head-auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    color: #fff;
    text-decoration: none;
}

.site-header .head-auth-btn__badge {
    position: absolute;
    top: -5px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: #2db84b;
    color: #fff;
    pointer-events: none;
    box-sizing: border-box;
}

.site-header .head-auth-btn__badge .head-ico {
    font-size: 7px;
    line-height: 1;
}

.site-header a.head-auth-btn:hover,
.site-header button.head-auth-btn:hover {
    color: #dacebd;
}

.site-header.header.site-header--inner .head-auth-btn {
    color: #2c3e4e;
}

.site-header.header.site-header--inner a.head-auth-btn:hover,
.site-header.header.site-header--inner button.head-auth-btn:hover {
    color: #0066cc;
}

.site-header.header.site-header--video-hero .head-auth-btn {
    color: #fff;
}

.site-header.header.site-header--video-hero a.head-auth-btn:hover,
.site-header.header.site-header--video-hero button.head-auth-btn:hover {
    color: #dacebd;
}

.pl-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
        max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    box-sizing: border-box;
}

.pl-auth-modal[hidden] {
    display: none;
}

.pl-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.pl-auth-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: min(90dvh, 560px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

.pl-auth-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: #ffffff;
    color: #0a0a0a;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pl-auth-modal__close:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.18);
}

.pl-auth-modal__inner {
    padding: 2.25rem 2rem 2rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.pl-auth-modal__heading {
    margin: 0 2.25rem 1.35rem 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #2c3e4e;
}

.pl-auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl-auth-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.pl-auth-modal__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(44, 62, 78, 0.75);
}

.pl-auth-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    color: #2c3e4e;
    background: #fafafa;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pl-auth-modal__input:hover {
    border-color: rgba(0, 0, 0, 0.22);
}

.pl-auth-modal__input:focus {
    outline: none;
    border-color: rgba(44, 62, 78, 0.45);
    background: #ffffff;
}

.pl-auth-modal__submit {
    margin-top: 0.25rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #ffffff;
    background: #2c3e4e;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease;
}

.pl-auth-modal__submit:hover {
    background: #3d5266;
}

.pl-auth-modal__submit:active {
    transform: scale(0.99);
}

.pl-auth-modal__forgot {
    margin: 1rem 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    text-align: center;
}

.pl-auth-modal__forgot a {
    color: #2c3e4e;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.pl-auth-modal__forgot a:hover {
    opacity: 0.75;
}

.pl-auth-modal__divider {
    margin: 1.15rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.45);
    text-align: center;
}

.pl-auth-modal__divider span {
    display: inline-block;
    padding: 0 0.65rem;
}

.pl-auth-modal__register {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
}

.pl-auth-modal__register a {
    color: #2c3e4e;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.pl-auth-modal__register a:hover {
    opacity: 0.75;
}
