/* kSacco Executive Login Interface Styles */
:root {
    --bg-base: #030712;
    --bg-card: rgba(15, 23, 42, 0.72);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-focus: #10b981;
    --primary-emerald: #10b981;
    --primary-teal: #0d9488;
    --primary-cyan: #06b6d4;
    --accent-glow: rgba(16, 185, 129, 0.28);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: auto, auto, auto, 28px 28px;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: pulse-glow 10s ease-in-out infinite alternate;
}

.ambient-glow-1 {
    top: -10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
}

.ambient-glow-2 {
    bottom: -15%;
    right: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #0891b2 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes pulse-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.4; }
    50% { transform: scale(1.15) translate(30px, -20px); opacity: 0.7; }
    100% { transform: scale(1) translate(-20px, 30px); opacity: 0.4; }
}

.ks-viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.ks-auth-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    width: 100%;
    align-items: center;
}

@media (max-width: 1024px) {
    .ks-auth-layout {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 32px;
    }
    .ks-showcase-column {
        display: none !important;
    }
}

.ks-showcase-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-right: 16px;
}

.ks-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #34d399;
    width: fit-content;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.ks-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ks-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.ks-hero-gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #22d3ee 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ks-hero-desc {
    font-size: 1.06rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 540px;
}

.ks-showcase-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.ks-glass-metric-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ks-glass-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.ks-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ks-metric-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
}

.ks-metric-icon-wrap.cyan {
    background: rgba(6, 182, 212, 0.14);
    border-color: rgba(6, 182, 212, 0.25);
    color: #22d3ee;
}

.ks-metric-ticker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.ks-metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.ks-metric-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.ks-security-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ks-security-banner svg {
    color: #10b981;
    flex-shrink: 0;
}

.ks-security-text strong {
    color: #e2e8f0;
}

.ks-auth-card-wrap {
    position: relative;
    width: 100%;
}

.ks-card-glow-border {
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(6, 182, 212, 0.15), rgba(255, 255, 255, 0.05));
    z-index: 0;
    pointer-events: none;
}

.ks-auth-card {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.ks-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ks-logo-symbol {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.ks-logo-symbol svg {
    width: 22px;
    height: 22px;
}

.ks-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.ks-brand-title span {
    color: #34d399;
}

.ks-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.ks-card-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.ks-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.ks-alert-danger {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.ks-alert-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.ks-field-group {
    margin-bottom: 18px;
}

.ks-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.ks-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ks-input-icon {
    position: absolute;
    left: 14px;
    color: #64748b;
    pointer-events: none;
}

.ks-input {
    width: 100%;
    padding: 13px 42px 13px 42px;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ks-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.ks-toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.ks-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.85rem;
}

.ks-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    cursor: pointer;
}

.ks-link {
    color: #34d399;
    text-decoration: none;
    font-weight: 600;
}

.ks-link:hover {
    text-decoration: underline;
}

.ks-btn-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.ks-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.4);
}

.ks-invite-notice {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.ks-card-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.ks-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ks-status-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

