:root {
    --kp-auth-red: #8f1719;
    --kp-auth-red-dark: #641012;
    --kp-auth-gold: #f4bd37;
    --kp-auth-ink: #201715;
    --kp-auth-muted: #736762;
    --kp-auth-soft: #fff8ea;
}

body.kp-auth-body {
    background: var(--kp-auth-soft);
    color: var(--kp-auth-ink);
    min-height: 100vh;
}

.kp-auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(440px, 1fr);
    min-height: 100vh;
}

.kp-auth-visual {
    background:
        linear-gradient(130deg, rgba(80, 18, 19, .96), rgba(157, 42, 44, .86)),
        url("../../front/assets/images/section-bg-10.png") center / cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    position: relative;
}

.kp-auth-visual::after {
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    height: 520px;
    position: absolute;
    right: -180px;
    top: 130px;
    width: 520px;
}

.kp-auth-brand {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.kp-auth-brand img {
    height: 74px;
    object-fit: contain;
    width: 74px;
}

.kp-auth-visual-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
}

.kp-auth-kicker {
    align-items: center;
    color: var(--kp-auth-gold);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    letter-spacing: .08em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.kp-auth-visual h1 {
    color: #fff;
    font-size: clamp(40px, 4.8vw, 70px);
    line-height: 1.04;
    margin: 0 0 22px;
}

.kp-auth-visual p {
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    line-height: 1.72;
    margin-bottom: 28px;
}

.kp-auth-benefits {
    display: grid;
    gap: 12px;
}

.kp-auth-benefits span {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-weight: 800;
    gap: 10px;
    padding: 13px 14px;
}

.kp-auth-benefits i {
    color: var(--kp-auth-gold);
    font-size: 18px;
}

.kp-auth-stats {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    z-index: 2;
}

.kp-auth-stats div {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 18px;
}

.kp-auth-stats strong,
.kp-auth-stats span {
    color: #fff;
    display: block;
}

.kp-auth-stats strong {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 6px;
}

.kp-auth-stats span {
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
}

.kp-auth-panel-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 42px 24px;
}

.kp-auth-panel {
    background: #fff;
    border: 1px solid rgba(33, 22, 21, .08);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(33, 22, 21, .12);
    max-width: 520px;
    padding: 34px;
    width: 100%;
}

.kp-auth-panel--wide {
    max-width: 600px;
}

.kp-auth-logo {
    display: inline-flex;
    margin-bottom: 28px;
}

.kp-auth-logo img {
    max-height: 78px;
    object-fit: contain;
}

.kp-auth-top {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.kp-auth-top .kp-auth-logo {
    margin-bottom: 0;
}

.kp-auth-lang {
    align-items: center;
    background: #fff8ea;
    border: 1px solid rgba(143, 23, 25, .18);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px;
}

.kp-auth-lang button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--kp-auth-red);
    font-size: 13px;
    font-weight: 900;
    min-height: 32px;
    padding: 0 12px;
}

.kp-auth-lang button.active {
    background: var(--kp-auth-red);
    color: #fff;
}

.kp-auth-panel h2 {
    color: var(--kp-auth-ink);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    margin: 0 0 10px;
}

.kp-auth-panel > p {
    color: var(--kp-auth-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.kp-auth-alert {
    margin-bottom: 18px;
}

.kp-auth-alert .alert {
    border-radius: 8px;
    margin-bottom: 10px;
}

.kp-auth-form {
    display: grid;
    gap: 15px;
}

.kp-auth-field label,
.kp-auth-check label {
    color: var(--kp-auth-ink);
    display: block;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.kp-auth-input {
    position: relative;
}

.kp-auth-input > i {
    color: var(--kp-auth-red);
    font-size: 19px;
    left: 15px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.kp-auth-input input {
    background: #fffaf4;
    border: 1px solid rgba(33, 22, 21, .12);
    border-radius: 8px;
    color: var(--kp-auth-ink);
    min-height: 54px;
    padding: 0 48px;
    width: 100%;
}

.kp-auth-input input:focus {
    border-color: var(--kp-auth-red);
    box-shadow: 0 0 0 4px rgba(143, 23, 25, .09);
    outline: none;
}

.kp-auth-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--kp-auth-muted);
    display: inline-flex;
    font-size: 20px;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
}

.kp-auth-help {
    color: var(--kp-auth-muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 7px;
}

.kp-auth-inline {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.kp-auth-check {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.kp-auth-check input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.kp-auth-check label {
    color: var(--kp-auth-muted);
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.kp-auth-check a,
.kp-auth-link {
    color: var(--kp-auth-red);
    font-weight: 900;
}

.kp-auth-submit {
    align-items: center;
    background: var(--kp-auth-red);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(143, 23, 25, .18);
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 54px;
    padding: 0 20px;
    width: 100%;
}

.kp-auth-submit:hover {
    background: var(--kp-auth-red-dark);
    color: #fff;
}

.kp-auth-submit:disabled {
    cursor: progress;
    opacity: .72;
}

.kp-auth-switch {
    border-top: 1px solid rgba(33, 22, 21, .08);
    color: var(--kp-auth-muted);
    font-weight: 700;
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
}

.kp-auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    margin-top: 18px;
}

.kp-auth-footer-links a {
    color: var(--kp-auth-muted);
    font-size: 13px;
    font-weight: 800;
}

.kp-auth-footer-links a:hover {
    color: var(--kp-auth-red);
}

#phoneexit {
    color: #b00000;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-top: 7px;
}

@media (max-width: 991px) {
    .kp-auth-shell {
        grid-template-columns: 1fr;
    }

    .kp-auth-visual {
        min-height: auto;
        padding: 34px 24px;
    }

    .kp-auth-stats {
        margin-top: 28px;
    }

    .kp-auth-panel-wrap {
        padding: 30px 16px;
    }
}

@media (max-width: 767px) {
    body.kp-auth-body {
        background: #fff;
    }

    .kp-auth-shell {
        display: block;
        min-height: 100vh;
    }

    .kp-auth-visual {
        display: none;
    }

    .kp-auth-panel-wrap {
        align-items: flex-start;
        min-height: 100vh;
        padding: 18px 14px 24px;
    }

    .kp-auth-panel,
    .kp-auth-panel--wide {
        border: 0;
        box-shadow: none;
        max-width: 100%;
        padding: 14px 4px 0;
    }

    .kp-auth-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 18px;
    }

    .kp-auth-top {
        margin-bottom: 18px;
    }

    .kp-auth-top .kp-auth-logo {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .kp-auth-logo img {
        max-height: 66px;
    }

    .kp-auth-panel h2 {
        font-size: 28px;
        text-align: center;
    }

    .kp-auth-panel > p {
        font-size: 14px;
        margin-bottom: 18px;
        text-align: center;
    }

    .kp-auth-form {
        gap: 13px;
    }

    .kp-auth-input input,
    .kp-auth-submit {
        min-height: 50px;
    }

    .kp-auth-switch {
        margin-top: 18px;
        padding-top: 16px;
    }
}

@media (max-width: 575px) {
    .kp-auth-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .kp-auth-stats,
    .kp-auth-inline {
        grid-template-columns: 1fr;
    }

    .kp-auth-inline {
        align-items: flex-start;
        flex-direction: column;
    }
}
