/*
 * Login page of the organization cabinet (/lkp/, template 56).
 *
 * The form is the shared site login module (.login-popup, pz_login) rendered
 * as a page instead of a fixed popup: form panel on the left, illustration on
 * the right, and below 900px (the popup's own breakpoint in
 * shared_responsive.css) only the form — the same picture the member sees in
 * the mobile popup. Everything the module needs (fields, buttons, errors)
 * comes from shared.css; this file only re-lays out the shell.
 */

body.lkp-login {
    min-height: 100%;
    background: #FFFFFF;
    overflow: hidden auto;
}

.lkp-login__page {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Form panel */

.lkp-login__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 50%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 96px 48px 32px;
}

/* The cross lives inside .login-popup (shared.css positions .close-popup top-right of the
   popup); here the popup is static, so it is placed against the panel instead. */
body.lkp-login .login-popup .close-popup {
    top: 28px;
    right: auto;
    left: 32px;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #000000;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

body.lkp-login .login-popup .close-popup svg {
    width: 16px;
    height: 16px;
}

body.lkp-login .login-popup .close-popup:hover {
    background: #F1F1F5;
}

.lkp-login__caption {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8A8A99;
}

.lkp-login__copyright {
    width: 100%;
    max-width: 460px;
    margin: 32px auto 0;
    font-size: 12px;
    color: #8A8A99;
}

/* Popup → page: the module toggles .active/.animation itself, the shell is
   always laid out so the panel never collapses while the form loads. */

body.lkp-login .login-popup {
    position: static;
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    box-shadow: none;
}

body.lkp-login .login-popup .container {
    width: 100%;
    height: auto;
    overflow: visible;
}

body.lkp-login .login-popup .container .wrapper {
    max-width: 460px;
    margin: 0 auto;
    padding: 0;
}

.lkp-login__trigger {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
    pointer-events: none;
}

.lkp-login__fallback {
    max-width: 460px;
    margin: 24px auto 0;
    font-size: 14px;
    line-height: 150%;
    color: #6A6A7A;
}

.lkp-login__fallback a {
    color: #90278E;
    text-decoration: underline;
}

/* Closed popup (module's close before its reload, or a close without one):
   the shell stays laid out, the stale form must not flash back. */

body.lkp-login .login-popup:not(.active) .container {
    visibility: hidden;
}

/* Mirror of the inline <style> block in chunks/pz_pages/pz_head.tpl (call / timeout
   screens of the login module, mobile refinements of the phone field) and of
   `.centered` from assets/site/new/style.css — the site loads them with its head,
   this page does not. Keep in sync with the chunk. */

img.ic_phone_verification {
    aspect-ratio: 1;
    width: 200px;
    align-self: center;
    padding-bottom: 15px;
}

img.ic_phone_registration_error {
    aspect-ratio: 1;
    width: 100px;
    align-self: center;
    padding-bottom: 15px;
}

.reg-timer__wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    padding-bottom: 15px;
    font-size: 12px;
}

.reg-timer__wrapper p.info {
    font-size: 12px;
}

.reg-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #90278E;
}

.reg-timer__icon {
    display: block;
    aspect-ratio: 2.5 / 3;
    height: 24px;
    background-image: url(/assets/site/pz_img/login-popup/reg-timer.svg);
    background-position: center;
    background-repeat: no-repeat;
}

.mb-15 {
    margin-bottom: 15px;
}

.reg-timer__text {
    color: inherit;
    line-height: 1;
    width: 73px;
}

.correct_number {
    font-size: 14px;
    font-weight: 700;
    color: rgba(130, 130, 130, 1);
}

.centered {
    text-align: center !important;
}

.login-popup .container .oneButton div.no-margin-top {
    margin-top: 0;
}

@media screen and (max-width: 680px) {
    img.ic_phone_verification {
        width: 150px;
    }

    .login-popup .container .phone .select {
        margin-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        width: 90px;
    }

    .login-popup .container .phone .select .arrow {
        display: none;
    }

    .login-popup .container .blockName {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .login-popup .container .field .label input[inputmode="tel"] {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .login-popup .container .tipText {
        font-size: 14px;
        font-weight: 300;
    }

    .login-popup .container .link.underline {
        font-weight: 500;
        text-decoration: underline;
    }

    .login-popup .container p.info.centered {
        text-align: center;
        font-size: 15px;
    }

    .login-popup .container .info.with-icon {
        font-size: 12px;
        gap: 10px;
    }
}

/* Logged in without cabinet rights: notice instead of the form */

body[data-lkp-state="noaccess"] .login-popup,
body[data-lkp-state="noaccess"] .lkp-login__trigger {
    display: none;
}

.lkp-login__notice {
    width: 100%;
    max-width: 460px;
    margin: auto;
}

.lkp-login__notice-title {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #D9D9D9;
    font-size: 32px;
    font-weight: 700;
}

.lkp-login__notice-text {
    font-size: 14px;
    line-height: 150%;
    color: #3B3B47;
}

.lkp-login__notice-text + .lkp-login__notice-text {
    margin-top: 12px;
}

.lkp-login__notice-text b {
    font-weight: 600;
}

.lkp-login__notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 32px;
}

.lkp-login__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    background: #90278E;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.lkp-login__button:hover {
    background: #7A1F78;
}

.lkp-login__link {
    font-size: 14px;
    font-weight: 500;
    color: #90278E;
    text-decoration: underline;
}

/* Illustration */

.lkp-login__visual {
    position: relative;
    width: 50%;
    overflow: hidden;
    background: #EAF0FA;
}

.lkp-login__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* Mobile: only the form, like the member's login popup */

@media (max-width: 900px) {
    .lkp-login__visual {
        display: none;
    }

    .lkp-login__panel {
        width: 100%;
        padding: 24px 20px;
    }

    body.lkp-login .login-popup .close-popup {
        top: 12px;
        left: auto;
        right: 12px;
    }

    .lkp-login__caption {
        max-width: none;
        margin: 0 40px 32px 0;
    }

    /* Form at the top, like the member's mobile popup */
    body.lkp-login .login-popup,
    body.lkp-login .login-popup.active {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    body.lkp-login .login-popup .container {
        align-items: start;
    }

    body.lkp-login .login-popup .container .wrapper {
        max-width: none;
        padding: 0;
    }

    .lkp-login__notice,
    .lkp-login__copyright,
    .lkp-login__fallback {
        max-width: none;
    }

    .lkp-login__notice {
        margin: 0;
    }
}
