/* Login pages only (business + admin). Scoped under .kl-* — does not touch global styles. */
:root { --brand: #2563EB; --kl-blue: #2563EB; --kl-orange: #2563EB; --kl-orange-dk: #1D4ED8; } /* v9: one blue CTA (the --kl-orange names are kept for compatibility) */
html, body { height: 100%; }
body.kl-body { margin: 0; background: #fff; color: #172B4D; }
.kl-split { display: flex; min-height: 100vh; }

.kl-hero { position: relative; overflow: hidden; flex: 1 1 52%; background: var(--kl-blue); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 64px; }
.kl-hero-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.kl-hero-brand .k-logo { background: #fff !important; color: var(--kl-blue) !important; }
.kl-hero-main { max-width: 480px; }
.kl-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.kl-hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0 0 18px; color: #fff; }
.kl-hero p { font-size: 16px; line-height: 1.65; margin: 0; color: rgba(255,255,255,.86); }
.kl-features { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-direction: column; gap: 16px; }
.kl-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.kl-check { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--kl-blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kl-hero-foot { font-size: 13px; color: rgba(255,255,255,.7); }

.kl-panel { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.kl-card { width: 100%; max-width: 400px; }
.kl-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.kl-brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.kl-brand .k-logo { box-shadow: 0 8px 18px -8px rgba(37,99,235,.6); }
.kl-brand strong { display: block; font-size: 16px; font-weight: 700; color: #172B4D; }
.kl-brand > div > span { display: block; font-size: 13px; color: #64748B; }
.kl-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: #172B4D; }
.kl-sub { font-size: 14.5px; color: #64748B; margin: 0 0 28px; }

.kl-card .field { margin-bottom: 18px; }
.kl-card .field label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.kl-card input[type=email], .kl-card input[type=password], .kl-card input[type=text] {
    width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px; font-size: 15px;
    border: 1px solid #E2EAF5; border-radius: 12px; background: #fff; color: #172B4D;
}
.kl-card input:focus { border-color: var(--kl-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.14); outline: none; }
.kl-pw { position: relative; }
.kl-pw input { padding-right: 48px !important; }
.kl-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #64748B; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.kl-pw-toggle svg[hidden] { display: none; }
.kl-pw-toggle:hover { color: var(--kl-blue); background: #EFF6FF; }
.kl-pw-toggle:focus-visible { outline: 2px solid var(--kl-blue); outline-offset: 1px; }

.kl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; font-size: 13.5px; }
.kl-remember { display: inline-flex; align-items: center; gap: 8px; color: #334155; cursor: pointer; }
.kl-remember input { width: 16px; height: 16px; accent-color: var(--kl-blue); margin: 0; }
.kl-link { color: var(--kl-blue); font-weight: 600; text-decoration: none; }
.kl-link:hover { text-decoration: underline; }

.kl-btn { box-shadow: 0 10px 22px -10px rgba(37,99,235,.45); transform: translateY(0); transition: background .15s, transform .15s, box-shadow .15s !important;
    width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--kl-orange); color: #fff; font: 700 15px var(--font, inherit); cursor: pointer; transition: background .15s; }
.kl-btn:hover { background: var(--kl-orange-dk); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(37,99,235,.5); }
.kl-btn:active { transform: translateY(0); }
.kl-btn:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.kl-alt { text-align: center; margin: 24px 0 0; font-size: 14px; color: #64748B; }
.kl-card .alert { border-radius: 12px; margin-bottom: 20px; }

/* ---- Animated social hub (left panel) ---- */
.kl-visual { --r1: 92px; --r2: 150px; position: relative; height: 340px; margin: 8px 0 12px; }
.kl-visual > * { position: absolute; left: 50%; top: 50%; }
.kl-hub { transform: translate(-50%,-50%); z-index: 3; }
.kl-hub .k-logo { background: #fff !important; color: var(--kl-blue) !important; box-shadow: 0 18px 40px -12px rgba(10,20,80,.55); font-size: 32px; }
.kl-ring { border: 1.5px dashed rgba(255,255,255,.28); border-radius: 50%; transform: translate(-50%,-50%); }
.kl-ring-1 { width: calc(var(--r1) * 2); height: calc(var(--r1) * 2); }
.kl-ring-2 { width: calc(var(--r2) * 2); height: calc(var(--r2) * 2); border-style: solid; border-color: rgba(255,255,255,.14); }
.kl-pulse { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 18px; border: 2px solid rgba(255,255,255,.55); animation: kl-pulse 2.8s ease-out infinite; }
.kl-pulse-2 { animation-delay: 1.4s; }
.kl-orbit { width: 0; height: 0; animation: kl-spin 36s linear infinite; z-index: 2; }
.kl-orbit-2 { animation-duration: 52s; animation-direction: reverse; }
.kl-soc { position: absolute; left: 0; top: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
.kl-soc > span { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(10,20,80,.55); animation: kl-spin 36s linear infinite reverse; }
.kl-orbit-2 .kl-soc > span { animation: kl-spin 52s linear infinite; }
.kl-soc > span:hover { transform: scale(1.12); }
.kl-float { display: flex; align-items: center; gap: 10px; background: #fff; color: #172B4D; padding: 10px 14px 10px 10px; border-radius: 14px; box-shadow: 0 16px 34px -14px rgba(10,20,80,.6); white-space: nowrap; z-index: 4; animation: kl-bob 5s ease-in-out infinite, kl-fade .7s .5s both; }
.kl-float small { display: block; font-size: 11px; color: #64748B; line-height: 1.2; }
.kl-float b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.kl-float em { font-style: normal; font-size: 12px; color: #16A34A; font-weight: 700; margin-left: 2px; }
.kl-float-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.kl-ic-green { background: #EFF6FF; color: #2563EB; } .kl-ic-amber { background: #DBEAFE; color: #1D4ED8; } .kl-ic-blue { background: #EFF6FF; color: var(--kl-blue); }
.kl-float-1 { margin: -150px 0 0 -260px; }
.kl-float-2 { margin: 70px 0 0 110px; animation-delay: -1.6s, .7s; }
.kl-float-3 { margin: 105px 0 0 -250px; animation-delay: -3.2s, .9s; }
@keyframes kl-spin { to { rotate: 360deg; } }
@keyframes kl-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes kl-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes kl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kl-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kl-in { animation: kl-up .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
@media (max-height: 820px) and (min-width: 961px) { .kl-visual { display: none; } }
@media (max-width: 1180px) { .kl-float-1, .kl-float-3 { display: none; } }
@media (prefers-reduced-motion: reduce) { .kl-visual *, .kl-in { animation: none !important; } }

@media (max-width: 960px) {
    .kl-visual { display: none; }
    .kl-split { flex-direction: column; }
    .kl-hero { flex: none; padding: 32px 24px; }
    .kl-hero h1 { font-size: 28px; }
    .kl-hero p { font-size: 15px; }
    .kl-features { margin-top: 22px; gap: 12px; }
    .kl-hero-foot, .kl-eyebrow { display: none; }
    .kl-hero-main { margin-top: 24px; max-width: none; }
    .kl-panel { flex: none; padding: 36px 20px 48px; }
}
@media (max-width: 520px) {
    .kl-hero p, .kl-features { display: none; }
    .kl-hero h1 { font-size: 24px; margin: 0; }
    .kl-brand { margin-bottom: 24px; }
    .kl-title { font-size: 24px; }
    .kl-row { flex-wrap: wrap; }
}

/* ---- Social sign-in + sign-up form (v3) ---- */
.kl-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.kl-soc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid #E2EAF5; border-radius: 12px; background: #fff; color: #172B4D; font: 600 14px var(--font, inherit); cursor: pointer; transition: border-color .15s, background .15s; }
.kl-soc-btn:hover:not(:disabled) { border-color: #DBEAFE; background: #EFF6FF; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.13); }
.kl-soc-btn:disabled { opacity: .5; cursor: not-allowed; }
.kl-soc-btn:focus-visible { outline: 2px solid var(--kl-blue); outline-offset: 2px; }
.kl-soc-btn .kl-spin { width: 16px; height: 16px; border: 2px solid #CBD5E1; border-top-color: var(--kl-blue); border-radius: 50%; animation: kl-spin .7s linear infinite; }
.kl-social-one { grid-template-columns: 1fr; }
.kl-soc-err { font-size: 13px; color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 9px 12px; margin-top: 10px; }
.kl-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; color: #94A3B8; text-transform: uppercase; letter-spacing: .06em; }
.kl-divider::before, .kl-divider::after { content: ""; flex: 1; height: 1px; background: #E2E8F0; }
.kl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kl-card input[type=tel], .kl-card select { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; font-size: 15px; border: 1px solid #E2EAF5; border-radius: 12px; background: #fff; color: #172B4D; }
.kl-phone { display: flex; gap: 8px; }
.kl-phone select { flex: 0 0 118px; padding: 0 8px; font-size: 14px; }
.kl-phone input { flex: 1; min-width: 0; }
.kl-card .field.has-error input, .kl-card .field.has-error select { border-color: #F87171; }
.kl-field-err { display: block; font-size: 12.5px; color: #B91C1C; margin-top: 6px; }
.kl-hint { display: block; font-size: 12px; color: #94A3B8; margin-top: 6px; }
.kl-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #475569; line-height: 1.5; margin: 6px 0 20px; cursor: pointer; }
.kl-terms input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--kl-blue); flex-shrink: 0; }
.kl-legal { font-size: 12px; color: #94A3B8; text-align: center; margin: 16px 0 0; line-height: 1.5; }
.kl-legal a { color: #64748B; }
.kl-panel.kl-panel-scroll { align-items: flex-start; }
.kl-panel.kl-panel-scroll .kl-card { padding: 8px 0 24px; }
.kl-card.kl-wide { max-width: 460px; }
@media (max-width: 520px) { .kl-grid2 { grid-template-columns: 1fr; gap: 0; } .kl-social { grid-template-columns: 1fr; } }
