
html.kih-auth-open,
html.kih-auth-open body {
    overflow: hidden !important;
}

.kih-auth-shell[hidden] {
    display: none !important;
}

.kih-auth-shell {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.kih-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12,35,20,.5);
    backdrop-filter: blur(9px);
}

.kih-auth-modal {
    position: relative;
    z-index: 1;
    width: min(560px,100%);
    max-height: min(860px,calc(100vh - 48px));
    overflow: auto;
    padding: 30px;
    border: 1px solid #d7e8dc;
    border-radius: 24px;
    background: linear-gradient(180deg,#fff,#fbfefc);
    box-shadow: 0 34px 100px rgba(12,45,24,.24);
}

.kih-auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d8e8dc;
    border-radius: 50%;
    background: #fff;
    color: #294f36;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.kih-auth-shell.is-profile-forced .kih-auth-close {
    display: none;
}

.kih-auth-shell.is-profile-forced .kih-auth-backdrop {
    pointer-events: none;
}

.kih-auth-brand {
    padding-right: 42px;
    margin-bottom: 22px;
}

.kih-auth-brand > span {
    color: #16883e;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kih-auth-brand h2 {
    margin: 7px 0 5px;
    color: #103a20;
    font-size: 28px;
    line-height: 1.1;
}

.kih-auth-brand p,
.kih-auth-pane-head p {
    margin: 0;
    color: #6f7f74;
    font-size: 13px;
    line-height: 1.55;
}

.kih-auth-message {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    background: #eef8f1;
    color: #25663a;
    font-size: 12px;
    line-height: 1.45;
}

.kih-auth-message[data-type="error"] {
    background: #fff0ef;
    color: #a63229;
}

.kih-auth-message[data-type="success"] {
    background: #eaf8ee;
    color: #187a39;
}

.kih-auth-pane[hidden] {
    display: none !important;
}

.kih-auth-pane-head {
    margin-bottom: 17px;
}

.kih-auth-pane-head h3 {
    margin: 0 0 5px;
    color: #173f26;
    font-size: 20px;
}

.kih-auth-success-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #e9f8ed;
    color: #159044;
    font-weight: 900;
}

.kih-auth-form {
    display: grid;
    gap: 13px;
}

.kih-auth-form--grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.kih-auth-form label {
    display: grid;
    gap: 6px;
}

.kih-auth-form label > span:first-child {
    color: #345441;
    font-size: 11px;
    font-weight: 800;
}

.kih-auth-form label small {
    color: #8a978e;
    font-weight: 500;
}

.kih-auth-form input[type="text"],
.kih-auth-form input[type="password"],
.kih-auth-form input[type="email"],
.kih-auth-form input[type="tel"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cfdfd4 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #183f26 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.kih-auth-form input:focus {
    border-color: #2da352 !important;
    box-shadow: 0 0 0 3px rgba(35,146,72,.1) !important;
}

.kih-auth-password-field {
    position: relative;
    display: block;
}

.kih-auth-password-field input {
    padding-right: 48px !important;
}

.kih-auth-password-field button {
    position: absolute;
    top: 50%;
    right: 7px;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #73907b;
    cursor: pointer;
}

.kih-auth-remember {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    color: #627269;
    font-size: 11px;
}

.kih-auth-remember input {
    margin: 0;
}

.kih-auth-primary {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #15883e !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg,#25a34d,#168b3e) !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(25,137,61,.16);
}

.kih-auth-primary:hover {
    background: linear-gradient(180deg,#2bab54,#17883e) !important;
    color: #fff !important;
}

.kih-auth-form.is-loading {
    opacity: .72;
}

.kih-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 13px;
}

.kih-auth-links button,
.kih-auth-back-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #567061;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.kih-auth-links button.is-accent,
.kih-auth-back-link {
    color: #16883e;
}

.kih-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 21px 0 13px;
    color: #8b978f;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.kih-auth-divider::before,
.kih-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e3ece6;
}

.kih-auth-socials {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 10px;
}

.kih-auth-social {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid #d3e3d8 !important;
    border-radius: 13px !important;
    background: linear-gradient(180deg,#ffffff,#fbfefc) !important;
    color: #24492f !important;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(21,76,37,.045);
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.kih-auth-social:hover {
    transform: translateY(-1px);
    border-color: #9bc8a6 !important;
    background: #f5fbf7 !important;
    box-shadow: 0 8px 20px rgba(21,76,37,.09);
}

.kih-auth-social:active {
    transform: translateY(0);
}

.kih-auth-social__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.kih-auth-social__icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.kih-auth-social__icon strong {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 16px;
    line-height: 1;
}

.kih-auth-social--google .kih-auth-social__icon strong {
    color: #4285f4;
}

.kih-auth-social--facebook .kih-auth-social__icon strong {
    color: #1877f2;
}

.kih-auth-social--tiktok .kih-auth-social__icon strong {
    color: #111;
}

.kih-auth-social__label {
    line-height: 1;
}

.kih-auth-wide {
    grid-column: 1 / -1;
}

.kih-auth-back-link {
    margin-top: 14px;
}

.kih-auth-privacy {
    margin: 22px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e6eee8;
    color: #87938b;
    font-size: 9px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 620px) {
    .kih-auth-shell {
        align-items: end;
        padding: 0;
    }

    .kih-auth-modal {
        width: 100%;
        max-height: min(92vh,860px);
        padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
    }

    .kih-auth-form--grid,
    .kih-auth-socials {
        grid-template-columns: 1fr;
    }

    .kih-auth-wide {
        grid-column: auto;
    }
}
