.kb-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 1, 99, 0.12) 0, transparent 45%),
        radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.14) 0, transparent 40%),
        linear-gradient(145deg, #f6f9ff 0%, #eef2ff 52%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.kb-auth-shell {
    width: min(1080px, 100%);
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: #ffffff;
}

.kb-auth-hero {
    position: relative;
    padding: 48px 42px;
    background:
        linear-gradient(155deg, rgba(74, 1, 99, 0.9) 0%, rgba(67, 56, 202, 0.88) 55%, rgba(37, 99, 235, 0.84) 100%),
        #4a0163;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.kb-auth-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.kb-auth-hero-logo {
    width: 100%;
    max-width: 340px;
    height: 156px;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.3));
    display: block;
    margin: 0 auto;
}

.kb-auth-hero-title {
    margin: 26px 0 10px;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.kb-auth-hero-subtitle {
    margin: 0;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.55;
}

.kb-auth-points {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 11px;
}

.kb-auth-points li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 500;
}

.kb-auth-points i {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
}

.kb-auth-card-wrap {
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.kb-auth-card {
    width: min(430px, 100%);
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.kb-auth-card .login-card-body {
    border-radius: 18px;
    padding: 30px 28px 22px;
}

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

.kb-auth-form-logo {
    width: 190px;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    /* No shadow for group logo (match requested styling) */
    filter: none;
}

.kb-auth-heading {
    margin-bottom: 22px;
}

.kb-auth-heading h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    font-weight: 700;
}

.kb-auth-heading p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.kb-auth-form .input-group {
    margin-bottom: 13px;
}

.kb-auth-form .form-control {
    height: 44px;
    border: 1px solid #cbd5e1;
    border-right: 0;
    font-size: 0.92rem;
}

.kb-auth-form .form-control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.13);
}

.kb-auth-form .input-group-text {
    border: 1px solid #cbd5e1;
    border-left: 0;
    background: #f8fafc;
    color: #64748b;
}

.kb-auth-form .showPassword {
    color: inherit;
}

.kb-auth-row {
    margin-top: 6px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.kb-auth-row .checkbox {
    margin-bottom: 0;
    color: #475569;
}

.kb-auth-row .form-group,
.kb-auth-forgot {
    flex: 0 0 auto;
}

.kb-auth-page .kb-auth-row .checkbox label,
.kb-auth-forgot {
    white-space: nowrap;
}

.kb-auth-row .checkbox input {
    margin-right: 6px;
}

.kb-auth-forgot {
    color: #4a0163;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 600;
}

.kb-auth-forgot:hover {
    color: #321047;
    text-decoration: underline;
}

.kb-auth-submit {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #4a0163 0%, #5b21b6 60%, #4338ca 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 18px rgba(91, 33, 182, 0.27);
}

.kb-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(91, 33, 182, 0.31);
}

.login-feedback {
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid transparent;
}

.login-feedback p {
    margin: 0;
}

.login-feedback-success {
    background: #ecfdf3;
    border-color: #a7f3d0;
    color: #065f46;
}

.login-feedback-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.login-field-error {
    display: block;
    margin: 2px 0 8px;
    font-size: 0.82rem;
    color: #b91c1c;
}

.kb-auth-badge {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.kb-auth-legal-links {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.kb-auth-legal-links a {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.kb-auth-legal-links a:hover,
.kb-auth-legal-links a:focus {
    color: #4a0163;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .kb-auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .kb-auth-hero {
        display: none;
    }

    .kb-auth-hero-title {
        font-size: 1.55rem;
    }

    .kb-auth-hero-logo {
        height: 120px;
        max-width: 280px;
    }

    .kb-auth-card-wrap {
        padding: 22px;
    }

    .kb-auth-form-logo-wrap {
        margin-bottom: 14px;
    }

    .kb-auth-form-logo {
        width: 160px;
        max-height: 110px;
    }
}

@media (max-width: 768px) {
    .kb-auth-page .kb-auth-form .form-control,
    .kb-auth-page .kb-auth-form select,
    .kb-auth-page .kb-auth-form textarea {
        font-size: 1rem;
    }
}

@media (max-width: 520px) {
    .kb-auth-page {
        padding: 12px;
    }

    .kb-auth-card-wrap {
        padding: 12px;
    }

    .kb-auth-card .login-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .kb-auth-row {
        gap: 8px;
    }

    .kb-auth-page .kb-auth-row .checkbox label,
    .kb-auth-forgot {
        font-size: 0.86rem;
    }
}
