/* ==========================================================================
   KUI landing (Home/Index, Home/ResumeApplication) for RE-KYC
   Add code kingshuk 22/10/2026
   --------------------------------------------------------------------------
   Same layout, hierarchy and motion as the E-KYC landing (two-column hero + form card), in the ReKYC Infinity Sky palette.
   Presentation only. Scoped to body.kui-auth. The Infinity device mockups / screenshots are intentionally not used.
   ========================================================================== */

body.kui-auth { min-height: 100dvh; margin: 0; background: var(--kui-bg); color: var(--kui-text); overflow-x: hidden; }
html:has(body.kui-auth) { background: var(--kui-bg); }
body.kui-auth *, body.kui-auth *::before, body.kui-auth *::after { box-sizing: border-box; }

.kui-auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--kui-bg); }

/* ---------- Hero panel: Infinity sky hero with a full-bleed growth-chart illustration (Add code kingshuk 23/10/2026) ---------- */
.kui-auth-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 40px 56px 32px; color: var(--kui-hero-text); border-right: 1px solid var(--kui-hero-line);
    background:
        radial-gradient(760px 480px at 88% 6%, rgba(255, 255, 255, .22), transparent 62%),
        var(--kui-hero-bg);
}
.kui-auth-hero .kui-hero-logo { align-self: flex-start; position: relative; z-index: 1; }
.kui-auth-hero .kui-hero-logo img { display: block; height: 40px; width: auto; }
.kui-auth-hero > div:nth-of-type(1) { position: static; margin-block: auto; max-width: 34rem; }

/* full-bleed market chart (decorative), one illustration per page */
.kui-hero-bgchart { display: none; }
.kui-hero-art { position: absolute; inset: 0; z-index: 0; margin: 0; pointer-events: none; }
.kui-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; animation: kuiArtIn 1.2s ease-out both; }
.kui-hero-art--open img { object-position: 70% 50%; }
.kui-hero-art--resume img { object-position: 62% 50%; }
/* legibility veil: the copy sits on a calm navy veil, the chart opens up to the right */
.kui-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 50, 89, .88) 0%, rgba(8, 50, 89, .62) 42%, rgba(8, 50, 89, 0) 85%); }
.kui-hero-logo, .kui-auth-hero h1, .kui-auth-hero p.lead, .kui-points, .kui-hero-foot { position: relative; z-index: 1; }

/* hero copy: Montserrat heading, Roboto text (same hierarchy as E-KYC) */
.kui-auth-hero h1 {
    max-width: 15em; margin: 0 0 16px; color: var(--kui-hero-text); font-family: var(--kui-font-heading);
    font-size: clamp(30px, 2.8vw, 40px); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; text-shadow: 0 2px 18px rgba(5, 31, 56, .35);
}
.kui-auth-hero h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 16px; border-radius: 2px; background: var(--kui-hero-neon); }
.kui-auth-hero p.lead { max-width: 31em; margin: 0 0 28px; color: var(--kui-hero-muted); font-family: var(--kui-font); font-size: 16.5px; line-height: 1.65; text-wrap: pretty; }
.kui-hl { color: var(--kui-hero-neon); }

/* benefits: a plain, quiet list (no cards) */
.kui-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 26rem; }
.kui-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--kui-hero-muted); font-size: 14.5px; line-height: 1.45; }
.kui-points b { display: block; margin-bottom: 1px; color: var(--kui-hero-text); font-weight: 600; font-size: 15px; }
.kui-point-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--kui-hero-chip); color: var(--kui-hero-chip-fg); }
.kui-point-icon svg { width: 18px; height: 18px; flex: none; display: block; }
.kui-auth-hero .kui-hero-foot { color: var(--kui-hero-faint); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--kui-hero-line); }
/* ---------- Market ticker: a flow item between the content and the footer, so it is always fully visible (Add code kingshuk 23/10/2026) ---------- */
.kui-hero-tape { position: relative; z-index: 1; flex: none; margin: 0 -56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.kui-tape-track { display: flex; gap: 18px; width: max-content; padding: 2px 18px 2px 0; animation: kuiTape 30s linear infinite; }
.kui-tick { flex: none; position: relative; width: 118px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.kui-tick::before { content: ""; position: absolute; left: 18px; top: 50%; margin-top: -6px; border-left: 8px solid transparent; border-right: 8px solid transparent; }
.kui-tick.up::before { border-bottom: 12px solid #34d399; }
.kui-tick.dn::before { border-top: 12px solid #FF6262; /* Add code kingshuk 05/11/2026 */ }
.kui-tick::after { content: ""; position: absolute; left: 48px; top: 50%; width: 54px; height: 9px; margin-top: -4.5px; border-radius: 5px; background: rgba(255, 255, 255, .8); }
@keyframes kuiTape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kui-tape-track { animation: none; } }
/* ---------- Form panel ---------- */
.kui-auth-panel {
    position: relative; display: flex; align-items: center; justify-content: center; padding: 32px 24px; background-color: var(--kui-bg);
    background-image: radial-gradient(520px 360px at 82% 8%, rgba(25, 147, 179, .08), transparent 70%), radial-gradient(460px 320px at 8% 96%, rgba(80, 199, 231, .07), transparent 70%);
}
.kui-auth-card { width: 100%; max-width: 460px; animation: kuiRise .65s .15s ease-out both; }
.kui-auth-card .card { border: 1px solid var(--kui-border); border-radius: 16px; background: var(--kui-surface); /* Add code kingshuk 23/10/2026 : top accent strip removed at the owner request */ box-shadow: 0 1px 2px rgba(5, 31, 56, .05), 0 14px 34px rgba(5, 31, 56, .08); }
.kui-auth-card .card-body { padding: 36px 32px 28px; }
.kui-auth-card .kui-mobile-logo { display: none; margin-bottom: 20px; }
.kui-auth-card .kui-mobile-logo img { height: 36px; width: auto; }
.kui-auth-card h2 { margin: 0 0 4px; color: var(--kui-heading); font-family: var(--kui-font-heading); font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.kui-auth-card .kui-sub { margin: 0 0 24px; color: var(--kui-text-muted); font-family: var(--kui-font); font-size: 14.5px; line-height: 1.5; }
.kui-auth-card label { margin-bottom: 6px; font-size: 13px; font-weight: 500; letter-spacing: normal; color: var(--kui-text); }
.kui-auth-card .form-control { min-height: 46px; padding: 0 14px; border: 1px solid var(--kui-border-strong); border-radius: 10px; font-size: 15px; letter-spacing: normal; }
.kui-auth-card .form-control:hover { border-color: var(--kui-brand-500); }
.kui-auth-card .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.kui-auth-card .input-group-text { min-height: 46px; padding: 0 14px; border: 1px solid var(--kui-border-strong); border-left: 0; border-radius: 0 10px 10px 0; background-color: var(--kui-surface-2) !important; color: var(--kui-text-muted); }
.kui-auth-card .btn-primary { min-height: var(--kui-btn-h-lg); font-size: 14px; letter-spacing: .04em; }
.kui-auth-card a.text-warning { color: var(--kui-brand-600) !important; font-weight: 600; }
/* Add code kingshuk 23/10/2026 : owner request. The main button on Home/Index and Home/ResumeApplication is flat: no shadow, no sheen, no lift and no colour change on hover or press (keyboard focus keeps its outline). */
html body.kui-landing .kui-auth-card .btn-primary,
html body.kui-landing .kui-auth-card .btn-primary:not(:disabled):not(.disabled),
html body.kui-landing .kui-auth-card .btn-primary:not(:disabled):not(.disabled):hover,
html body.kui-landing .kui-auth-card .btn-primary:not(:disabled):not(.disabled):focus,
html body.kui-landing .kui-auth-card .btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--kui-btn) !important; border-color: var(--kui-btn) !important; color: var(--kui-on-brand) !important;
    background-image: none; box-shadow: none !important; transform: none; transition: none;
}
.kui-trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; color: var(--kui-text-muted); font-size: 12.5px; }
.kui-trust span { display: inline-flex; align-items: center; gap: 6px; }
.kui-home-theme { position: absolute; top: 20px; right: 24px; z-index: 5; }

/* logo pair sizing on the landing */
.kui-auth-wrap .kui-logo { height: 38px; width: auto; max-width: 100%; }
.kui-auth-wrap .kui-logo-light, .kui-auth-wrap .kui-logo-dark { display: block; }
.kui-auth-wrap .kui-logo-dark { display: none; }
:root[data-kui-theme="dark"] .kui-auth-wrap .kui-logo-light { display: none; }
:root[data-kui-theme="dark"] .kui-auth-wrap .kui-logo-dark { display: block; }

@media (max-width: 991.98px) {
    .kui-auth-wrap { grid-template-columns: 1fr; }
    .kui-auth-hero { display: none; }
    .kui-auth-card .kui-mobile-logo { display: block; }
    .kui-home-theme { top: 14px; right: 14px; }
}
@media (max-width: 575.98px) {
    .kui-auth-card .card-body { padding: 26px 20px 22px; }
}

/* ---------- Motion (same keyframes as E-KYC) ---------- */
@keyframes kuiRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kuiArtIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes kuiHl { to { background-position: -220% 0; } }
@keyframes kuiIcon { 0%, 100% { box-shadow: 0 0 0 0 rgba(80, 199, 231, 0); } 50% { box-shadow: 0 0 0 5px rgba(80, 199, 231, .16); } }
.kui-auth-hero h1 { animation: kuiRise .7s .1s ease-out both; }
.kui-auth-hero p.lead { animation: kuiRise .7s .25s ease-out both; }
.kui-points li { animation: kuiRise .6s ease-out both; }
.kui-points li:nth-child(1) { animation-delay: .4s; }
.kui-points li:nth-child(2) { animation-delay: .52s; }
.kui-points li:nth-child(3) { animation-delay: .64s; }
@media (prefers-reduced-motion: reduce) {
    .kui-hl, .kui-point-icon, .kui-hero-art img, .kui-auth-hero h1, .kui-auth-hero p.lead, .kui-points li, .kui-auth-card { animation: none; }
    .kui-points li:hover { translate: none; }
}

/* Add code kingshuk 28/10/2026 : Home/Index and Home/ResumeApplication - dark mode page background is pure black (#000000), at the owner's request. Only the page colour (the form side, the page and the root) changes: the blue hero panel, the form card, inputs, text, logos and light mode are untouched. The two soft teal glows that tinted the dark form side are removed so it is exactly #000000. */
html[data-kui-theme="dark"]:has(body.kui-landing) { --kui-bg: #000000; }
html[data-kui-theme="dark"] .kui-auth-panel { background-image: none; }
/* Add code kingshuk 28/10/2026 : Home/Index and Home/ResumeApplication - a focused text box turned white in dark mode. Bootstrap's ".form-control:focus { background-color: #fff; color: #212529 }" outranks the field colours, which had no :focus state. The focused box now keeps the surface and text colours of the theme (in light mode the surface is white already, so light mode looks the same). Read-only / disabled fields are left alone. */
html body.kui-landing .form-control:focus:not([readonly]):not(:disabled), html body.kui-landing .form-select:focus:not(:disabled) { background-color: var(--kui-surface); color: var(--kui-text); }