.auth-body {
    min-height: 100vh;
    background: #fff;
}

.auth-split {
    min-height: 100vh;
    display: flex;
}

.auth-panel {
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(160deg, #0c3b24 0%, #166a40 55%, #21895a 100%);
    color: #fff;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-panel-top {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e8c766;
}

.auth-panel-brand {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.auth-panel-org {
    display: block;
    flex: 0 0 auto;
    height: 6rem;
    width: auto;
}

.auth-panel-logo {
    min-width: 0;
}

.auth-logo-shine {
    position: relative;
    line-height: 0;
}

.auth-logo-shine img {
    display: block;
    width: 20rem;
    max-width: 100%;
    height: auto;
}

.auth-panel-meaning {
    max-width: 26rem;
    color: #d9efe2;
    line-height: 1.45;
}

.auth-panel-meaning strong {
    color: #e8c766;
}

.auth-panel-tag {
    margin: 1.25rem 0 1rem;
    max-width: 26rem;
    font-size: 1.35rem;
    line-height: 1.4;
    color: #effaf3;
}

.auth-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: #effaf3;
}

.auth-panel-list .bi {
    color: #e8c766;
    margin-right: 0.5rem;
    font-size: 1.15rem;
    vertical-align: -0.1em;
}

.auth-panel-foot {
    font-size: 0.8rem;
    color: #b4d9c3;
}

.auth-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-form {
    width: 100%;
    max-width: 25rem;
}

.auth-brand-mobile {
    display: none;
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-brand-mobile::after,
.auth-logo-shine::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.85) 50%, transparent 62%) no-repeat;
    background-size: 250% 100%;
    background-position: 130% 0;
    -webkit-mask: url("../img/iknow_logo_horizontal.png") center / contain no-repeat;
    mask: url("../img/iknow_logo_horizontal.png") center / contain no-repeat;
    animation: brand-shine 4.5s ease-in-out 1s infinite;
}

@keyframes brand-shine {
    0% { background-position: 130% 0; }
    35%, 100% { background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand-mobile::after,
    .auth-logo-shine::after {
        animation: none;
    }
}

.auth-brand-mobile img {
    display: block;
    width: 19rem;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.field-icon {
    position: relative;
}

.field-icon > .bi {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.field-icon .form-control {
    padding-left: 2.75rem;
    padding-right: 3.25rem;
    border-radius: 0.75rem;
    min-height: 3.25rem;
}

.field-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    border-radius: 0.5rem;
    color: #4b5563;
}

.field-toggle:hover {
    background: #f3f4f6;
}

.caps-warning {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #b45309;
}

.auth-help {
    margin: 0;
    font-size: 0.875rem;
    color: #4b5563;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-panel {
        display: none;
    }

    .auth-brand-mobile {
        display: block;
    }

    .auth-body {
        background-color: #5d636b;
        background-image:
            repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 3px),
            repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 3px),
            linear-gradient(180deg, #3d4248 0%, #6b727a 100%);
    }

    .auth-main {
        align-items: center;
        padding: 1.5rem 1rem;
    }

    .auth-form .auth-credit {
        display: block;
        margin: 1.25rem 0 0;
        text-align: center;
        font-size: 0.75rem;
        color: #8a8f98;
    }

    .auth-form .auth-title {
        font-size: 1.6rem;
        line-height: 1.2;
        text-align: center;
    }

    .auth-form:has(#login-form) .auth-sub {
        display: none;
    }

    .auth-form:has(#login-form) .auth-title {
        margin-bottom: 1.1rem;
    }

    .auth-form {
        background: #fff;
        border: 1px solid rgba(60, 50, 40, 0.1);
        border-radius: 1rem;
        padding: 1.5rem 1.25rem;
        box-shadow: 0 6px 24px rgba(60, 50, 40, 0.1);
    }
}

.auth-credit {
    display: none;
}

.auth-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.auth-sub {
    color: var(--lms-muted);
    margin-bottom: 1.25rem;
}

.auth-diag,
.auth-crest {
    display: none;
}

@media (min-width: 992px) {
    .auth-body::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        height: 5px;
        z-index: 20;
        background: linear-gradient(90deg, #e8c766, #7a1f2e 50%, #e8c766);
    }

    .auth-split {
        --edge-top: 51.22%;
        --shift: calc(100vh * 0.1405);
        position: relative;
        overflow: hidden;
    }

    .auth-panel {
        flex: 0 0 51.22%;
        width: 51.22%;
        box-sizing: border-box;
        position: relative;
        z-index: 3;
        padding: 4rem 7.5rem 4rem 4rem;
        clip-path: polygon(0 0, 100% 0, calc(100% - var(--shift)) 100%, 0 100%);
    }

    .auth-panel-brand {
        padding-bottom: 1.1rem;
        border-bottom: 1px solid rgba(232, 199, 102, 0.45);
    }

    .auth-diag {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 2;
    }

    .auth-diag span {
        position: absolute;
        inset: 0;
    }

        .auth-diag .g {
        background: #e8c766;
        clip-path: polygon(var(--edge-top) 0, calc(var(--edge-top) + 15px) 0, calc(var(--edge-top) + 15px - var(--shift)) 100%, calc(var(--edge-top) - var(--shift)) 100%);
    }

    .auth-diag .m {
        background: #7a1f2e;
        overflow: hidden;
        clip-path: polygon(calc(var(--edge-top) + 15px) 0, calc(var(--edge-top) + 55px) 0, calc(var(--edge-top) + 55px - var(--shift)) 100%, calc(var(--edge-top) + 15px - var(--shift)) 100%);
    }

    .auth-diag .m::before {
        content: "";
        position: absolute;
        inset: -25% -10%;
        background: url("../img/zigzag-pattern.svg") center / 28px 28px repeat;
        transform: rotate(8deg);
    }


    .auth-main {
        padding-left: 6.5rem;
    }

    .auth-crest {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        margin-bottom: 0.9rem;
        color: #c9a227;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.2em;
    }

    .auth-crest::before,
    .auth-crest::after {
        content: "";
        width: 2.1rem;
        height: 2px;
        background: #e8c766;
    }

    .auth-form .auth-title {
        margin-bottom: 0.9rem;
    }

    .auth-form .auth-title::after {
        content: "";
        display: block;
        width: 3.6rem;
        height: 4px;
        margin-top: 0.55rem;
        border-radius: 4px;
        background: linear-gradient(90deg, #e8c766 0 74%, transparent 74% 84%, #7a1f2e 84%);
    }

    .auth-form .field-icon .form-control:focus {
        border-color: #c9a227;
        box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.22);
    }

    .auth-form #login-submit {
        background: linear-gradient(90deg, #7a1f2e, #94293b);
        border: 0;
        border-bottom: 3px solid #e8c766;
        border-radius: 0.75rem;
        min-height: 3.25rem;
        font-weight: 700;
        box-shadow: 0 8px 18px rgba(122, 31, 46, 0.28);
    }

    .auth-form #login-submit:hover {
        background: linear-gradient(90deg, #6a1927, #7a1f2e);
    }

    .auth-help a {
        color: #7a1f2e;
        font-weight: 600;
    }
}