body.ks-auth-body {
    background: radial-gradient(1200px 500px at 50% -10%, #1e3a8a 0%, #070b16 55%);
    min-height: 100vh;
}

body.ks-auth-body .auth-main,
body.ks-auth-body .auth-wrapper,
body.ks-auth-body .auth-form {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

body.ks-auth-body .auth-main,
body.ks-auth-body .auth-main .auth-wrapper.v2 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body.ks-auth-body .auth-main .auth-wrapper.v2 {
    align-items: stretch;
    min-height: 100vh;
}

body.ks-auth-body .auth-main .auth-wrapper.v2 .auth-form {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 28px 20px 180px;
}

body.ks-auth-body .auth-main .auth-wrapper.v2 .auth-sidecontent {
    display: flex !important;
    flex: 0 0 440px;
    width: 440px;
    max-width: 44vw;
    align-self: stretch;
    align-items: stretch;
    justify-content: stretch;
    background: linear-gradient(180deg, #e7f1ff 0%, #d4e7f9 100%);
    overflow: hidden;
    position: relative;
}

body.ks-auth-body .auth-sidecontent::after {
    opacity: 0.08;
}

.ks-marquee {
    position: relative;
    z-index: 2;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    padding: 0 18px;
    box-sizing: border-box;
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}

.ks-marquee-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: ks-quote-down 180s linear infinite;
}

.ks-marquee:hover .ks-marquee-track {
    animation-play-state: paused;
}

.ks-quote {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.08);
    text-align: left;
}

.ks-quote-who {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ks-quote-landlord {
    background: #dbeafe;
    color: #1d4ed8;
}

.ks-quote-tenant {
    background: #ccfbf1;
    color: #0f766e;
}

.ks-quote-manager {
    background: #fef3c7;
    color: #b45309;
}

.ks-quote p {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.ks-quote strong {
    display: block;
    padding-left: 10px;
    border-left: 3px solid #38bdf8;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

@keyframes ks-quote-down {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

@media (max-width: 991.98px) {
    body.ks-auth-body .auth-main .auth-wrapper.v2 {
        flex-direction: column;
        overflow: visible;
    }

    body.ks-auth-body .auth-main .auth-wrapper.v2 .auth-sidecontent {
        display: flex !important;
        flex: none;
        width: 100%;
        max-width: none;
        order: 2;
        min-height: 0;
    }

    .ks-marquee {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks-marquee-track {
        animation: none;
    }

    .ks-marquee {
        overflow: auto;
        mask-image: none;
    }
}

body.ks-auth-body .auth-form .logo {
    display: flex;
    justify-content: center;
    background: transparent;
    margin-bottom: 8px;
}

body.ks-auth-body .brand-logo,
body.ks-auth-body .logo img,
.pc-sidebar .m-header .logo,
.ks-brand img {
    background: transparent !important;
    box-shadow: none;
}

body.ks-auth-body .brand-logo {
    display: block;
    height: 86px;
    width: auto;
    margin: 0 auto;
    background: transparent !important;
}

body.ks-auth-body .auth-form .card {
    background: rgba(10, 16, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    color: #e8eefc;
    backdrop-filter: blur(16px);
}

body.ks-auth-body .auth-form .card-body,
body.ks-auth-body .auth-header,
body.ks-auth-body .auth-header h2,
body.ks-auth-body .auth-header p,
body.ks-auth-body label,
body.ks-auth-body .form-check-label,
body.ks-auth-body h5,
body.ks-auth-body a {
    color: #e8eefc;
}

body.ks-auth-body .form-control,
body.ks-auth-body .form-floating > .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 14px;
}

body.ks-auth-body select.form-control,
body.ks-auth-body select.form-control option {
    color: #0f172a !important;
    background-color: #ffffff !important;
}

body.ks-auth-body select.form-control option:checked {
    background-color: #1d6fe8 !important;
    color: #ffffff !important;
}

body.ks-auth-body .form-floating > label {
    color: #9fb0d0;
}

.ks-auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.ks-auth-switch button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #c9d5ee;
    padding: 10px 12px;
    font-weight: 700;
}

.ks-auth-switch button.is-on {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.ks-skyline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    height: 170px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0 10px;
    pointer-events: none;
}

.ks-skyline i {
    display: block;
    flex: 1 1 0;
    height: 46%;
    border-radius: 7px 7px 0 0;
    transform-origin: bottom center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%),
        linear-gradient(180deg, #7dd3fc, #1d4ed8 70%, #0f172a);
    animation: ks-rise 2.6s ease-in-out infinite;
    position: relative;
}

.ks-skyline i::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 10px;
    height: 42%;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.75) 0 4px,
        transparent 4px 9px
    );
    mask-image: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 8px);
}

.ks-skyline i:nth-child(3n) { height: 72%; animation-duration: 3.2s; }
.ks-skyline i:nth-child(4n) { height: 34%; animation-duration: 2.1s; }
.ks-skyline i:nth-child(5n) { height: 88%; animation-duration: 3.6s; }
.ks-skyline i:nth-child(2n) { animation-delay: -0.6s; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 24%), linear-gradient(180deg, #c4b5fd, #6d28d9 68%, #1e1b4b); }
.ks-skyline i:nth-child(3) { animation-delay: -1.1s; }
.ks-skyline i:nth-child(5) { animation-delay: -1.7s; }
.ks-skyline i:nth-child(7) { animation-delay: -0.3s; }
.ks-skyline i:nth-child(9) { animation-delay: -2s; }
.ks-skyline i:nth-child(11) { animation-delay: -0.8s; }

@keyframes ks-rise {
    0%, 100% { transform: scaleY(0.42); }
    50% { transform: scaleY(1); }
}
