/* Auth split — Koperasi Simpan Pinjam */
:root {
    --auth-green: #1a3d32;
    --auth-green-deep: #142f27;
    --auth-green-muted: rgba(255, 255, 255, 0.72);
    --auth-gold: #c9a227;
    --auth-gold-hover: #b8921f;
    --auth-cream: #faf8f3;
    --auth-cream-dark: #f3efe6;
    --auth-text: #1f2937;
    --auth-text-muted: #6b7280;
    --auth-border: #e5e0d6;
    --auth-error: #b91c1c;
    --auth-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --auth-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.auth-ksp-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--auth-sans);
    color: var(--auth-text);
    background: var(--auth-cream);
    -webkit-font-smoothing: antialiased;
}

.auth-ksp-shell {
    display: flex;
    min-height: 100vh;
}

/* —— Brand panel (kiri) —— */
.auth-ksp-brand {
    flex: 0 0 50%;
    max-width: 50%;
    background: var(--auth-green);
    color: #fff;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-ksp-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.auth-ksp-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 520px;
}

.auth-ksp-logo-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 3rem;
    text-decoration: none;
    color: inherit;
}

.auth-ksp-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.auth-ksp-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-ksp-logo-mark svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.auth-ksp-logo-title {
    font-family: var(--auth-serif);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.auth-ksp-logo-legal {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--auth-green-muted);
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.auth-ksp-hero {
    flex: 1;
}

.auth-ksp-since {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--auth-gold);
    margin-bottom: 1.25rem;
}

.auth-ksp-since::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--auth-gold);
}

.auth-ksp-tagline {
    font-family: var(--auth-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.auth-ksp-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--auth-green-muted);
    margin: 0;
    max-width: 420px;
}

.auth-ksp-features {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.auth-ksp-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.auth-ksp-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.auth-ksp-feature strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.auth-ksp-feature span {
    font-size: 0.78rem;
    color: var(--auth-green-muted);
    line-height: 1.45;
}

/* —— Form panel (kanan) —— */
.auth-ksp-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--auth-cream);
}

.auth-ksp-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-ksp-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--auth-text-muted);
    margin-bottom: 1rem;
}

.auth-ksp-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth-green);
}

.auth-ksp-heading {
    font-family: var(--auth-serif);
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 0.65rem;
    color: var(--auth-text);
}

.auth-ksp-heading em {
    font-style: italic;
    color: var(--auth-green);
}

.auth-ksp-sub {
    font-size: 0.88rem;
    color: var(--auth-text-muted);
    line-height: 1.55;
    margin: 0 0 1.75rem;
}

.auth-ksp-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.auth-ksp-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-ksp-alert--error {
    background: #fef2f2;
    color: var(--auth-error);
    border: 1px solid #fecaca;
}

.auth-ksp-field {
    margin-bottom: 1.15rem;
}

.auth-ksp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.auth-ksp-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-text-muted);
}

.auth-ksp-link {
    font-size: 0.78rem;
    color: var(--auth-green);
    text-decoration: none;
    font-weight: 500;
}

.auth-ksp-link:hover {
    text-decoration: underline;
}

.auth-ksp-input-wrap {
    position: relative;
}

.auth-ksp-input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-ksp-input {
    width: 100%;
    padding: 0.8rem 2.75rem 0.8rem 2.5rem;
    font-size: 0.92rem;
    font-family: inherit;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-ksp-input:focus {
    outline: none;
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(26, 61, 50, 0.12);
}

.auth-ksp-input::placeholder {
    color: #9ca3af;
}

.auth-ksp-input--no-toggle {
    padding-right: 1rem;
}

.auth-ksp-toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.auth-ksp-toggle-pw:hover {
    color: var(--auth-text);
}

.auth-ksp-error {
    font-size: 0.8rem;
    color: var(--auth-error);
    margin-top: 0.35rem;
}

.auth-ksp-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 1.35rem;
    font-size: 0.85rem;
    color: var(--auth-text-muted);
    cursor: pointer;
}

.auth-ksp-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--auth-green);
}

.auth-ksp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--auth-gold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.auth-ksp-btn:hover {
    background: var(--auth-gold-hover);
}

.auth-ksp-btn:active {
    transform: scale(0.99);
}

.auth-ksp-footer-prompt {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--auth-text-muted);
}

.auth-ksp-footer-prompt a {
    color: var(--auth-green);
    font-weight: 600;
    text-decoration: none;
}

.auth-ksp-footer-prompt a:hover {
    text-decoration: underline;
}

.auth-ksp-legal {
    text-align: center;
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-top: 1.25rem;
}

.auth-ksp-legal a {
    color: var(--auth-green);
    text-decoration: underline;
}

.auth-ksp-bottom {
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--auth-border);
}

.auth-ksp-hint {
    font-size: 0.78rem;
    color: var(--auth-text-muted);
    margin: 0;
}

.auth-ksp-info-status {
    background: #f0f7f4;
    border: 1px solid #c5ddd2;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #374151;
    line-height: 1.5;
}

.auth-ksp-koperasi-search-wrap {
    position: relative;
}

.auth-ksp-koperasi-results {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.auth-ksp-koperasi-results li {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.88rem;
}

.auth-ksp-koperasi-results li:last-child {
    border-bottom: none;
}

.auth-ksp-koperasi-results li:hover,
.auth-ksp-koperasi-results li:focus {
    background: #f0f7f4;
    outline: none;
}

.auth-ksp-koperasi-results li strong {
    display: block;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-ksp-koperasi-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    margin-top: 0.15rem;
}

.auth-ksp-koperasi-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #065f46;
}

.auth-ksp-koperasi-selected i {
    color: #059669;
    flex-shrink: 0;
}

.auth-ksp-koperasi-selected span {
    flex: 1;
    min-width: 0;
}

.auth-ksp-koperasi-clear {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 0.25rem;
}

.auth-ksp-koperasi-clear:hover {
    color: #111827;
}

.d-none {
    display: none !important;
}

.auth-ksp-form-panel--scroll {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 991px) {
    .auth-ksp-shell {
        flex-direction: column;
    }

    .auth-ksp-brand {
        flex: none;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .auth-ksp-hero {
        margin-bottom: 1rem;
    }

    .auth-ksp-features {
        display: none;
    }

    .auth-ksp-tagline {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .auth-ksp-form-panel {
        padding: 1.5rem 1.25rem;
    }
}
