/* SoftBar – DEKAO ERP 3D Glassmorphism Login Theme */
:root {
    --navy-deep: #02112e;
    --navy: #031B45;
    --navy-mid: #062863;
    --cyan: #00e5ff;
    --cyan-soft: rgba(0, 229, 255, .35);
    --electric: #0a6cff;
    --ink: #f4f8ff;
    --muted: #9db6d8;
    --glass-bg: rgba(8, 35, 86, .46);
    --glass-border: rgba(94, 210, 255, .34);
    --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body.dekao-body {
    font-family: var(--font);
    color: var(--ink);
    background: radial-gradient(1200px 650px at 78% 18%, rgba(0, 174, 255, .24) 0%, transparent 60%),
                radial-gradient(900px 600px at 18% 72%, rgba(10, 108, 255, .28) 0%, transparent 62%),
                linear-gradient(135deg, #020e26 0%, #031B45 48%, #04255c 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Moving cyan light waves & particles */
.dk-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.dk-wave {
    position: absolute;
    width: 160%;
    height: 360px;
    left: -30%;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, .18);
    box-shadow: 0 0 60px rgba(0, 229, 255, .16), inset 0 0 40px rgba(10, 108, 255, .14);
    filter: blur(1px);
    animation: dkWave 14s ease-in-out infinite alternate;
}
.dk-wave.w1 { top: 14%; transform: rotate(-10deg); }
.dk-wave.w2 { bottom: -120px; height: 420px; border-color: rgba(0, 229, 255, .26); animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes dkWave {
    0% { transform: translate3d(-2%, 0, 0) rotate(-9deg) scale(1); }
    100% { transform: translate3d(2%, -18px, 0) rotate(-5deg) scale(1.04); }
}

.dk-particles span {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    opacity: .55;
    animation: dkFloatP 9s linear infinite;
}
@keyframes dkFloatP {
    0% { transform: translateY(0) scale(.8); opacity: 0; }
    25% { opacity: .75; }
    75% { opacity: .65; }
    100% { transform: translateY(-110px) scale(1.2); opacity: 0; }
}

/* Main container */
.dk-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px clamp(16px, 3vw, 40px) 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top header bar */
.dk-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dk-brand-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dk-logo-box { display: flex; align-items: center; gap: 12px; }
.dk-logo-mark {
    width: 48px; height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(0, 229, 255, .22), rgba(10, 108, 255, .36));
    border: 1.5px solid rgba(0, 229, 255, .55);
    display: grid; place-items: center;
    box-shadow: 0 0 22px rgba(0, 229, 255, .32);
    overflow: hidden;
}
.dk-logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.dk-logo-text b { font-size: 26px; font-weight: 800; letter-spacing: .01em; display: block; line-height: 1; color: #fff; }
.dk-logo-text small { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.dk-divider { width: 1.5px; height: 40px; background: linear-gradient(180deg, transparent, rgba(0, 229, 255, .6), transparent); }
.dk-erp-title h1 { margin: 0; font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; letter-spacing: .03em; line-height: 1.05; color: #fff; }
.dk-erp-title h1 span { color: var(--cyan); text-shadow: 0 0 18px rgba(0, 229, 255, .65); }
.dk-erp-title p { margin: 3px 0 0; font-size: 12.5px; color: #c4dcfb; letter-spacing: .05em; }
.dk-slogan {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    color: #dbeafe;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0, 229, 255, .28);
}

/* Main 2-column grid */
.dk-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
    margin: 18px 0;
}

/* Left 3D Showcase */
.dk-stage {
    position: relative;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1100px;
}
.dk-scene {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 410px;
    transform-style: preserve-3d;
    transition: transform .18s ease-out;
}
/* Dotted Digital Globe */
.dk-globe {
    position: absolute;
    right: 6%;
    top: 12%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(0, 229, 255, .36), rgba(10, 108, 255, .14) 55%, transparent 72%),
                repeating-linear-gradient(0deg, transparent 0 10px, rgba(0, 229, 255, .12) 10px 11px),
                repeating-linear-gradient(90deg, transparent 0 10px, rgba(0, 229, 255, .12) 10px 11px);
    border: 1.5px solid rgba(0, 229, 255, .35);
    box-shadow: 0 0 55px rgba(0, 229, 255, .25), inset 0 0 32px rgba(0, 229, 255, .22);
    animation: dkGlobeSpin 22s linear infinite;
}
@keyframes dkGlobeSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.03); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Podium glowing rings */
.dk-podium {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) rotateX(72deg);
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, .38) 0%, rgba(10, 108, 255, .22) 48%, transparent 72%);
    border: 2px solid rgba(0, 229, 255, .55);
    box-shadow: 0 0 45px rgba(0, 229, 255, .45), inset 0 0 35px rgba(0, 229, 255, .35);
}
.dk-podium::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 229, 255, .6);
    animation: dkRingSpin 16s linear infinite;
}
@keyframes dkRingSpin { to { transform: rotate(360deg); } }

/* 3D Laptop Dashboard */
.dk-laptop {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    width: 265px;
    z-index: 3;
}
.dk-screen {
    height: 168px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(160deg, #082d6b 0%, #031538 100%);
    border: 2px solid rgba(0, 229, 255, .65);
    box-shadow: 0 0 35px rgba(0, 229, 255, .35), inset 0 0 24px rgba(0, 229, 255, .18);
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}
.dk-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 92px;
}
.dk-bar {
    flex: 1;
    border-radius: 5px 5px 2px 2px;
    background: linear-gradient(180deg, #6cf4ff 0%, #0a84ff 100%);
    box-shadow: 0 0 14px rgba(0, 229, 255, .45);
    animation: dkBarPulse 3.2s ease-in-out infinite alternate;
}
.dk-bar:nth-child(1) { height: 34%; animation-delay: .1s; }
.dk-bar:nth-child(2) { height: 50%; animation-delay: .3s; }
.dk-bar:nth-child(3) { height: 42%; animation-delay: .5s; }
.dk-bar:nth-child(4) { height: 68%; animation-delay: .2s; }
.dk-bar:nth-child(5) { height: 82%; animation-delay: .4s; }
.dk-bar:nth-child(6) { height: 96%; animation-delay: .6s; }
@keyframes dkBarPulse { 0% { opacity: .82; } 100% { opacity: 1; filter: brightness(1.15); } }
.dk-laptop-base {
    height: 14px;
    margin: 0 -18px;
    border-radius: 4px 4px 14px 14px;
    background: linear-gradient(180deg, #7ad7ff 0%, #1956a8 100%);
    box-shadow: 0 8px 20px rgba(0, 229, 255, .4);
}
.dk-erp-3d {
    position: absolute;
    right: -28px;
    bottom: 8px;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #e8f7ff;
    text-shadow: 0 3px 0 #0b63d4, 0 6px 0 #063d8a, 0 0 26px rgba(0, 229, 255, .8);
    z-index: 4;
}

/* 6 Floating Glass Icons */
.dk-icon {
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(22, 92, 196, .52), rgba(5, 29, 77, .72));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 229, 255, .52);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .42), 0 0 20px rgba(0, 229, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    z-index: 5;
    animation: dkFloat 4.8s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}
.dk-icon i { font-size: 24px; color: #b8f5ff; filter: drop-shadow(0 0 8px rgba(0, 229, 255, .6)); }
.dk-icon span { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.dk-icon:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 28px rgba(0, 229, 255, .6); }

.dk-i-inv { left: 10%; top: 14%; animation-delay: 0s; }
.dk-i-sales { left: 36%; top: 2%; animation-delay: .8s; }
.dk-i-hrm { left: 2%; top: 40%; animation-delay: 1.4s; }
.dk-i-rep { left: 10%; bottom: 10%; animation-delay: .4s; }
.dk-i-pos { right: 16%; top: 20%; animation-delay: 1.1s; }
.dk-i-set { right: 5%; bottom: 26%; animation-delay: 1.7s; }

@keyframes dkFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Multi-company glass picker when systems.Count > 1 */
.dk-sys-box {
    width: 100%;
    max-width: 560px;
    margin-top: 12px;
    background: rgba(5, 28, 72, .62);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .38);
}
.dk-sys-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.dk-finder {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(0, 229, 255, .32);
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
}
.dk-finder input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 13.5px; }
.dk-finder input::placeholder { color: var(--muted); }
.dk-finder kbd { font-size: 11px; color: var(--cyan); background: rgba(0, 229, 255, .14); padding: 2px 6px; border-radius: 5px; }
.dk-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dk-grid {
    list-style: none;
    margin: 0;
    padding: 0 4px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-height: 220px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, .4) transparent;
}
.dk-grid li[hidden] { display: none; }
.dk-grid button {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid rgba(0, 229, 255, .25);
    background: rgba(10, 56, 130, .48);
    color: #eef6ff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}
.dk-grid button:hover { background: rgba(0, 180, 255, .28); border-color: var(--cyan); transform: translateY(-1px); }
.dk-grid button[aria-pressed="true"] { background: linear-gradient(135deg, #00c6ff, #0072ff); color: #fff; border-color: #fff; box-shadow: 0 6px 18px rgba(0, 180, 255, .45); }
.dk-grid .num { min-width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(0, 229, 255, .18); font-size: 11px; font-weight: 800; color: var(--cyan); }
.dk-grid button[aria-pressed="true"] .num { background: rgba(255, 255, 255, .22); color: #fff; }
.dk-grid .name { overflow-wrap: anywhere; line-height: 1.2; }
.dk-none { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* Right Glassmorphism Login Card */
.dk-card-wrap {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}
.dk-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin-top: 32px;
    padding: 58px 32px 28px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(16, 62, 140, .52) 0%, rgba(5, 26, 70, .72) 100%);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid rgba(110, 220, 255, .48);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .55), 0 0 42px rgba(0, 229, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .32);
    animation: dkCardIn .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes dkCardIn {
    from { opacity: 0; transform: translateY(22px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dk-card-badge {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #0e4a9e, #041b48);
    border: 2.5px solid var(--cyan);
    box-shadow: 0 0 32px rgba(0, 229, 255, .75), inset 0 0 18px rgba(0, 229, 255, .35);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.dk-card-badge img { width: 64%; height: 64%; object-fit: contain; }
.dk-card-badge span { font-size: 26px; font-weight: 900; color: var(--cyan); }

.dk-card h2 { margin: 0; text-align: center; font-size: 28px; font-weight: 800; color: #fff; }
.dk-card p.hint { margin: 4px 0 18px; text-align: center; font-size: 13.5px; color: #c4dcfb; }

.dk-picked {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(0, 229, 255, .14);
    border: 1px solid rgba(0, 229, 255, .42);
    font-size: 13px;
    font-weight: 700;
}
.dk-picked.on { display: flex; }
.dk-picked .num { background: var(--cyan); color: #031B45; padding: 2px 8px; border-radius: 7px; font-weight: 800; }
.dk-picked small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

.dk-fld {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    border: 1.5px solid rgba(110, 220, 255, .32);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.dk-fld:focus-within {
    border-color: var(--cyan);
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .22), 0 0 16px rgba(0, 229, 255, .25);
}
.dk-fld i { color: #d5ecff; font-size: 15px; width: 18px; text-align: center; }
.dk-fld input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
}
.dk-fld input::placeholder { color: #9db6d8; font-weight: 500; }
.dk-eye {
    background: transparent;
    border: 0;
    color: #b7d3f5;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color .15s;
}
.dk-eye:hover { color: var(--cyan); }

.dk-btn-login {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #10d8ff 0%, #0a7cff 100%);
    color: #fff;
    font: 800 15.5px var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 180, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.dk-btn-login:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(0, 229, 255, .58); }
.dk-btn-login:active { transform: translateY(1px); }
.dk-btn-login:disabled { opacity: .6; cursor: not-allowed; }

.dk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 13px 0 6px;
    font-size: 13px;
    color: #cde1fa;
}
.dk-chk { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.dk-chk input { accent-color: var(--cyan); width: 15px; height: 15px; cursor: pointer; }
.dk-forgot { color: #67e8ff; text-decoration: none; font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.dk-forgot:hover { text-decoration: underline; }

.dk-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: var(--muted);
    font-size: 12.5px;
}
.dk-or::before, .dk-or::after { content: ""; flex: 1; height: 1px; background: rgba(110, 220, 255, .24); }

.dk-btn-win {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid rgba(110, 220, 255, .36);
    background: rgba(255, 255, 255, .05);
    color: #eef6ff;
    font: 700 13.5px var(--font);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: background .15s, border-color .15s, transform .15s;
}
.dk-btn-win:hover { background: rgba(0, 229, 255, .14); border-color: var(--cyan); transform: translateY(-1px); }

.dk-stopped {
    background: rgba(220, 38, 38, .22);
    border: 1px solid rgba(248, 113, 113, .6);
    color: #fecaca;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Footer */
.dk-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(110, 220, 255, .22);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    font-size: 12.5px;
    color: #c4dcfb;
}
.dk-foot-item { display: flex; align-items: center; gap: 12px; }
.dk-foot-item i {
    width: 38px; height: 38px; flex: none;
    border-radius: 10px;
    background: rgba(0, 229, 255, .14);
    border: 1px solid rgba(0, 229, 255, .38);
    display: grid; place-items: center;
    color: var(--cyan);
    font-size: 16px;
}
.dk-foot-item b { display: block; color: #fff; font-size: 13px; }
.dk-foot-item a { color: #7beeff; text-decoration: none; }
.dk-foot-item a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
    .dk-main { grid-template-columns: 1fr; gap: 24px; }
    .dk-stage { min-height: 300px; }
    .dk-scene { height: 320px; transform: scale(.86); transform-origin: center; }
    .dk-slogan { display: none; }
    .dk-foot { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 560px) {
    .dk-stage { min-height: 220px; }
    .dk-scene { height: 240px; transform: scale(.66); }
    .dk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dk-card { padding: 54px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.dk-wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, .45);
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 0 0 6px rgba(37, 211, 102, .14);
    transition: transform .18s ease, box-shadow .18s ease;
}
.dk-wa:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 14px 32px rgba(37, 211, 102, .6), 0 0 0 8px rgba(37, 211, 102, .22);
    color: #fff;
}
