#kx-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #871262; /* Konexo Plum */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    font-family: 'Calibri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-y: auto;
    box-sizing: border-box;
}

#kx-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 10px;
}

#kx-card {
    width: 100%;
    max-width: 520px;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 48px 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#kx-logo {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}
#kx-logo span { color: #fbb800; } /* Konexo Mustard */

#kx-tagline {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

#kx-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.65;
    max-width: 370px;
    margin-bottom: 28px;
    text-align: center;
}

.kx-login-form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
}
.kx-login-form:last-of-type { margin-bottom: 28px; }

.kx-login-btn {
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
    letter-spacing: 0.3px;
    font-family: inherit;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
}

/* Primary (external users) - solid white pill */
.kx-login-primary {
    background: #fff;
    color: #871262; /* Konexo Plum */
    border: none;
    padding: 13px 0;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    width: 220px;
}
.kx-login-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    color: #871262; /* Konexo Plum */
}

/* Internal users (SSO) - outlined secondary pill */
.kx-login-internal {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.7);
    padding: 11px 0;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    width: 220px;
}
.kx-login-internal:hover {
    background: #fff;
    color: #871262; /* Konexo Plum */
}

#kx-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin-bottom: 24px;
}

#kx-slider {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kx-slide {
    display: none;
    width: 100%;
    text-align: center;
}
.kx-slide.kx-active { display: block; }

.kx-slide-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
}

.kx-slide-body {
    font-size: 12px;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    text-align: center;
    width: 100%;
    margin: 0 auto 18px;
    display: block;
    align-self: center;
}

#kx-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.kx-arrow {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    font-family: inherit;
}
.kx-arrow:hover { background: #fff; color: #871262; } /* Konexo Plum */

#kx-dots { display: flex; gap: 5px; align-items: center; }

.kx-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
    display: inline-block;
}
.kx-dot.kx-active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}

#kx-li {
    margin-top: 26px;
    font-size: 26px;
    font-weight: 900;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
}

@media (max-width: 560px) {
    #kx-card { padding: 36px 22px 28px; }
    #kx-logo { font-size: 32px; letter-spacing: 3px; }
    .kx-login-btn { width: 180px; }
    .kx-login-primary { font-size: 14px; }
    .kx-slide-body { max-width: 100%; }
}
