/* Login page — OS glow + card nổi */

body.login-page {
    background: #0d1117 !important;
    background-image: none !important;
    overflow-x: hidden;
    min-height: 100vh;
}

body.login-page .wapter.login-page-wrap {
    width: 100%;
    height: auto;
    padding-top: 120px;
    justify-content: center !important;
}

.login-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 60% at 10% 15%, rgba(14, 165, 233, 0.18) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 92% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 48% 105%, rgba(6, 182, 212, 0.14) 0%, transparent 52%),
        radial-gradient(ellipse 40% 35% at 72% 18%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, #0d1117 0%, #121820 40%, #0a1018 70%, #080c12 100%);
}

/* === Map trong khối HUD góc trái — to === */
.login-ai-scene--in-hud {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 100%;
    min-height: 320px;
    opacity: 1;
    z-index: 2;
}

.login-ai-scene--in-hud .login-webgl-map {
    position: absolute;
    inset: 3% 4% 4% 4%;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    background: rgba(6, 10, 18, 0.5);
    backdrop-filter: blur(4px);
    box-shadow:
        0 0 32px rgba(34, 211, 238, 0.15),
        inset 0 0 24px rgba(34, 211, 238, 0.06);
}

.login-ai-scene--in-hud .login-map-image {
    opacity: 0.78;
    filter: grayscale(0.1) contrast(1.2) brightness(1.08) saturate(0.95);
    mix-blend-mode: normal;
    border-radius: 6px;
}

.login-ai-agent--in-hud {
    width: 68px;
    height: 68px;
    left: 2%;
    bottom: 6%;
    z-index: 5;
}

.login-ai-agent--in-hud .login-ai-agent-orb {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(12, 20, 36, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow:
        0 0 14px rgba(34, 211, 238, 0.18),
        inset 0 0 12px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: login-agent-bounce 2.2s ease-in-out infinite;
}

.login-ai-agent--in-hud .login-ai-agent-img {
    width: 108%;
    height: 108%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    background: transparent;
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
}

@keyframes login-agent-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.04); }
}

.login-ai-agent--in-hud .login-ai-agent-aura,
.login-ai-agent--in-hud .login-ai-agent-core,
.login-ai-agent--in-hud .login-ai-agent-wave,
.login-ai-agent--in-hud .login-ai-agent-eye {
    display: none;
}

/* Chip trong box góc dưới phải — vuông */
.login-chip-scene--in-box,
.login-chip-scene.login-chip-scene--in-box {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    opacity: 1;
}

.login-cosmic-hud--br {
    bottom: 6%;
    right: 2%;
    width: min(34vw, 440px);
    height: min(34vw, 440px);
    aspect-ratio: 1 / 1;
    border-radius: 12px 0 0 0;
    border-bottom: none;
    border-right: none;
    padding: 20px 10px 10px 14px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-chip-scene--in-box .login-chip-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.login-chip-scene .login-chip-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter:
        drop-shadow(0 0 10px rgba(57, 255, 20, 0.55))
        drop-shadow(0 0 24px rgba(34, 211, 238, 0.45))
        drop-shadow(0 0 48px rgba(56, 189, 248, 0.3));
}

.login-chip-svg rect[stroke],
.login-chip-svg path,
.login-chip-svg line {
    stroke-opacity: 1;
}

.login-chip-traces path {
    stroke-dasharray: 6 4;
    animation: login-chip-flow 4s linear infinite;
    stroke-width: 1.5;
    opacity: 0.9;
}

.login-chip-node {
    animation: login-node-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px currentColor);
}

.login-chip-label {
    position: absolute;
    bottom: 4%;
    right: 8%;
    font-family: 'Consolas', 'Roboto Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.14em;
    color: rgba(57, 255, 20, 0.85);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.7), 0 0 20px rgba(34, 211, 238, 0.4);
}

.login-chip-glow {
    position: absolute;
    top: 32%;
    left: 28%;
    width: 50%;
    height: 38%;
    background: radial-gradient(ellipse, rgba(57, 255, 20, 0.25) 0%, rgba(34, 211, 238, 0.12) 40%, transparent 70%);
    filter: blur(18px);
    animation: login-cmd-flicker 3s ease-in-out infinite alternate;
}

/* Tia sáng laser tỏa từ chip */
.login-chip-lasers {
    position: absolute;
    top: 38%;
    left: 42%;
    width: 0;
    height: 0;
    z-index: 0;
}

.login-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 140px;
    transform-origin: top center;
    animation: login-laser-pulse 2.5s ease-in-out infinite;
}

.login-laser--green {
    background: linear-gradient(180deg, rgba(57, 255, 20, 0.95) 0%, rgba(34, 197, 94, 0.6) 45%, transparent 100%);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.95), 0 0 18px rgba(57, 255, 20, 0.5);
}

.login-laser--cyan {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.95) 0%, rgba(6, 182, 212, 0.65) 45%, transparent 100%);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.95), 0 0 20px rgba(34, 211, 238, 0.55);
}

.login-laser--sky {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.95) 0%, rgba(14, 165, 233, 0.7) 40%, rgba(59, 130, 246, 0.35) 70%, transparent 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.95), 0 0 22px rgba(14, 165, 233, 0.6), 0 0 36px rgba(59, 130, 246, 0.35);
}

.login-laser--1 { transform: rotate(-80deg); height: 140px; animation-delay: 0s; }
.login-laser--2 { transform: rotate(-52deg); height: 160px; animation-delay: -0.35s; }
.login-laser--3 { transform: rotate(-28deg); height: 150px; animation-delay: -0.7s; }
.login-laser--4 { transform: rotate(-5deg);  height: 155px; animation-delay: -1.05s; }
.login-laser--5 { transform: rotate(18deg);  height: 145px; animation-delay: -1.4s; }
.login-laser--6 { transform: rotate(42deg);  height: 150px; animation-delay: -1.75s; }
.login-laser--7 { transform: rotate(65deg);  height: 135px; animation-delay: -2.1s; }
.login-laser--8 { transform: rotate(82deg);  height: 125px; animation-delay: -2.45s; }

@keyframes login-laser-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes login-chip-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -20; }
}

.login-map-sketchup-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.login-map-sketch-svg {
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.login-map-scan-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: repeating-linear-gradient(
        -18deg,
        transparent,
        transparent 8px,
        rgba(34, 211, 238, 0.04) 8px,
        rgba(34, 211, 238, 0.04) 9px
    );
    pointer-events: none;
}

.login-map-frame-glow {
    position: absolute;
    inset: -1px;
    border-radius: 10px;
    box-shadow: inset 0 0 16px rgba(34, 211, 238, 0.08);
    pointer-events: none;
}

.login-webgl-map {
    overflow: hidden;
}

.login-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

@media (max-width: 1300px) {
    .login-cosmic-hud--tl {
        width: min(38vw, 480px);
        height: min(38vh, 400px);
        padding: 20px 16px 16px 16px;
    }

    .login-cosmic-hud--br {
        width: min(32vw, 420px);
        height: min(32vw, 420px);
    }
}

@media (max-width: 1100px) {
    .login-cosmic-hud--tl {
        opacity: 0.55;
        width: 360px;
        height: 340px;
        padding: 18px 14px 14px 14px;
    }

    .login-cosmic-hud--br {
        opacity: 0.65;
        width: 320px;
        height: 320px;
        right: 0;
    }
}

@media (max-width: 900px) {
    .login-cosmic-hud--tl,
    .login-cosmic-hud--br {
        display: none;
    }
}

/* AI Agent — quả cầu nhìn dashboard */
.login-ai-agent {
    position: absolute;
    left: 0;
    bottom: 12%;
    width: 110px;
    height: 110px;
    z-index: 3;
}

.login-ai-agent-aura {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    filter: blur(12px);
    animation: login-ai-breathe 4s ease-in-out infinite;
}

.login-ai-agent-core {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #60a5fa 0%, #2563eb 40%, #1e3a8a 100%);
    box-shadow:
        0 0 25px rgba(59, 130, 246, 0.6),
        0 0 50px rgba(34, 211, 238, 0.3),
        inset 0 -8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-ai-agent-wave {
    position: absolute;
    bottom: 25%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: login-ai-wave 2s ease-in-out infinite;
}

.login-ai-agent-wave--2 {
    bottom: 35%;
    opacity: 0.6;
    animation-delay: -0.6s;
    transform: scaleX(0.7);
}

.login-ai-agent-eye {
    position: absolute;
    top: 28%;
    right: 22%;
    width: 14px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

@keyframes login-ai-wave {
    0%, 100% { transform: scaleX(0.5); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes login-node-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes login-ai-breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Điểm sáng command center rải nền (ảnh 2) */
.login-command-spots {
    position: absolute;
    inset: 0;
}

.login-cmd-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: login-cmd-flicker 6s ease-in-out infinite alternate;
}

.login-cmd-spot--cyan {
    width: 120px;
    height: 120px;
    background: rgba(34, 211, 238, 0.2);
    top: 18%;
    left: 22%;
    animation-delay: 0s;
}

.login-cmd-spot--green {
    width: 80px;
    height: 80px;
    background: rgba(57, 255, 20, 0.12);
    top: 42%;
    left: 8%;
    animation-delay: -2s;
}

.login-cmd-spot--orange {
    width: 90px;
    height: 90px;
    background: rgba(251, 146, 60, 0.15);
    bottom: 25%;
    right: 15%;
    animation-delay: -4s;
}

.login-cmd-spot--red {
    width: 70px;
    height: 70px;
    background: rgba(248, 113, 113, 0.12);
    top: 30%;
    right: 25%;
    animation-delay: -1s;
}

@keyframes login-cmd-flicker {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 0.85; transform: scale(1.05); }
}

/* Tinh vân / không gian trong suốt */
.login-cosmic-nebula {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 25% 35%, rgba(34, 211, 238, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 75% 65%, rgba(96, 165, 250, 0.1) 0%, transparent 40%),
        conic-gradient(from 210deg at 50% 50%, transparent 0deg, rgba(14, 165, 233, 0.04) 60deg, transparent 120deg);
    filter: blur(2px);
    animation: login-nebula-drift 18s ease-in-out infinite alternate;
}

/* HUD góc trái — khối to, chứa map bên trong */
.login-cosmic-hud {
    position: absolute;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.08) 0%, rgba(6, 12, 22, 0.55) 55%, transparent 100%);
    box-shadow:
        inset 0 0 40px rgba(56, 189, 248, 0.08),
        0 0 40px rgba(34, 211, 238, 0.1);
    opacity: 0.92;
    overflow: hidden;
}

.login-cosmic-hud--tl {
    top: 8%;
    left: 2%;
    width: min(42vw, 540px);
    height: min(42vh, 440px);
    border-radius: 0 0 32px 0;
    border-top: none;
    border-left: none;
    padding: 22px 18px 18px 18px;
    box-sizing: border-box;
}

.login-cosmic-hud--tl::before {
    width: 56px;
    height: 1px;
    top: 20px;
    left: 20px;
    box-shadow: 0 10px 0 rgba(56, 189, 248, 0.22), 0 20px 0 rgba(56, 189, 248, 0.14), 80px 0 0 rgba(56, 189, 248, 0.28);
}

.login-cosmic-hud--tl::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 16px;
    left: 140px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
    animation: login-hud-pulse 2.5s ease-in-out infinite;
}

.login-cosmic-hud::before,
.login-cosmic-hud::after {
    content: '';
    position: absolute;
    background: rgba(56, 189, 248, 0.35);
    z-index: 3;
    pointer-events: none;
}

.login-cosmic-hud--br::before {
    width: 40px;
    height: 1px;
    top: 18px;
    left: 16px;
}

.login-cosmic-hud--br::after {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: 14px;
    left: 80px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
    animation: login-hud-pulse 2.5s ease-in-out infinite;
}

/* Họa tiết dữ liệu AI agent */
.login-cosmic-data {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(90deg, transparent 49.5%, rgba(56, 189, 248, 0.15) 50%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(56, 189, 248, 0.08) 50%, transparent 50.5%);
    background-size: 120px 120px, 120px 120px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 75%);
}

.login-ai-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(56, 189, 248, 0.03) 3px,
        rgba(56, 189, 248, 0.03) 4px
    );
    animation: login-scanline 12s linear infinite;
}

@keyframes login-nebula-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, 12px) rotate(1deg); }
}

@keyframes login-hud-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

@keyframes login-scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(120px); }
}

.login-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: login-orb-float 10s ease-in-out infinite alternate;
}

.login-glow-orb--1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.55) 0%, transparent 68%);
    top: 8%;
    left: 12%;
    animation-delay: 0s;
}

.login-glow-orb--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, transparent 68%);
    top: 55%;
    right: 8%;
    animation-delay: -3s;
}

.login-glow-orb--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, transparent 70%);
    bottom: 12%;
    left: 28%;
    animation-delay: -6s;
}

.login-glow-orb--4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, transparent 70%);
    top: 22%;
    right: 32%;
    animation-delay: -2s;
}

.login-glow-orb--5 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 72%);
    bottom: 30%;
    right: 18%;
    animation-delay: -4s;
}

.login-glow-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.14) 1px, transparent 1px),
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 28px 28px, 80px 80px, 80px 80px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 30%, transparent 85%);
}

/* Vùng sáng phía sau khung đăng nhập */
.login-bg-layer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 980px;
    height: 580px;
    transform: translate(-50%, -48%);
    background:
        radial-gradient(ellipse, rgba(56, 189, 248, 0.28) 0%, rgba(59, 130, 246, 0.14) 38%, transparent 72%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
    filter: blur(45px);
    animation: login-panel-glow 6s ease-in-out infinite alternate;
}

@keyframes login-orb-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.45;
    }
    100% {
        transform: translate(18px, -12px) scale(1.08);
        opacity: 0.65;
    }
}

@keyframes login-panel-glow {
    0% {
        opacity: 0.55;
        transform: translate(-50%, -48%) scale(0.98);
    }
    100% {
        opacity: 0.85;
        transform: translate(-50%, -48%) scale(1.04);
    }
}

.wapter.login-page-wrap {
    position: relative;
    z-index: 1;
}

.desktop-login-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    position: relative;
}

/* Khung đăng nhập — glass, nền glow xuyên qua */
.desktop-login-card {
    width: 100%;
    max-width: 880px;
    min-height: 480px;
    background: rgba(10, 18, 32, 0.42);
    backdrop-filter: blur(14px) saturate(1.15);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 12px 28px rgba(0, 0, 0, 0.22),
        0 32px 72px rgba(0, 0, 0, 0.38),
        0 56px 120px rgba(0, 0, 0, 0.42),
        0 80px 160px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 120px rgba(56, 189, 248, 0.2),
        0 0 200px rgba(59, 130, 246, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    overflow: visible;
    position: relative;
    z-index: 2;
    transform: translateY(-10px);
}

.desktop-login-sidebar {
    flex: 0 0 54%;
    background: url('https://res.cloudinary.com/dndu1lllq/image/upload/c_scale,w_1200/Predictive-Maintenance_smi9jy.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
    box-shadow: inset -20px 0 40px rgba(0, 0, 0, 0.15);
}

.desktop-login-sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, transparent 50%, rgba(99, 102, 241, 0.12) 100%);
    pointer-events: none;
}

.desktop-sidebar-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
    pointer-events: none;
}

.desktop-wave-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.desktop-wave-1 {
    width: 200px;
    height: 200px;
    background: #ff6b6b;
    bottom: -100px;
    right: -50px;
}

.desktop-wave-2 {
    width: 150px;
    height: 150px;
    background: #ffa726;
    bottom: -75px;
    right: 50px;
}

.desktop-wave-3 {
    width: 100px;
    height: 100px;
    background: #ff7043;
    bottom: -50px;
    right: 150px;
}

.desktop-login-content {
    flex: 1;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: rgba(18, 28, 42, 0.52);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    border-left: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow:
        inset 0 0 60px rgba(34, 211, 238, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    max-width: 480px;
    min-width: 340px;
    width: 100%;
    margin: 0 auto;
}

.desktop-login-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 12%, rgba(56, 189, 248, 0.14) 0%, transparent 55%),
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.04) 0%,
            transparent 42%,
            rgba(10, 16, 28, 0.25) 100%
        );
    pointer-events: none;
    z-index: 0;
}

.desktop-login-content > * {
    position: relative;
    z-index: 1;
}

.desktop-content-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
    padding-bottom: 0;
}

/* Laser chiếu từ tiêu đề SMART WORK — sát chữ */
.desktop-title-lasers {
    position: absolute;
    left: 50%;
    top: calc(100% - 22px);
    width: 0;
    height: 0;
    z-index: 0;
    pointer-events: none;
}

.desktop-title-laser.login-laser {
    width: 1.5px;
    box-shadow: none;
}

.desktop-title-laser.login-laser--green {
    box-shadow: 0 0 4px rgba(57, 255, 20, 0.7);
}

.desktop-title-laser.login-laser--cyan {
    box-shadow: 0 0 4px rgba(34, 211, 238, 0.7);
}

.desktop-title-laser.login-laser--sky {
    box-shadow: 0 0 4px rgba(56, 189, 248, 0.7);
}

.desktop-title-laser {
    height: 95px;
}

.login-title-laser--1 { transform: rotate(-78deg); height: 88px; animation-delay: 0s; }
.login-title-laser--2 { transform: rotate(-38deg); height: 98px; animation-delay: -0.4s; }
.login-title-laser--3 { transform: rotate(0deg);   height: 102px; animation-delay: -0.8s; }
.login-title-laser--4 { transform: rotate(38deg);  height: 98px; animation-delay: -1.2s; }
.login-title-laser--5 { transform: rotate(78deg);  height: 88px; animation-delay: -1.6s; }

.desktop-login-title {
    margin: 0 auto 4px;
    font-family: Stencil, 'Segoe UI', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.35),
        0 0 32px rgba(34, 211, 238, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.45);
}

.desktop-login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.desktop-form-group {
    margin-bottom: 26px;
}

.desktop-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e8f4fc;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.desktop-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Textbox thấp, chữ nhỏ hơn ở view ban đầu */
.desktop-form-input {
    width: 100%;
    padding: 10px 44px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.desktop-form-input::placeholder {
    color: #94a3b8;
    font-size: 16px;
}

.desktop-form-group:first-of-type .desktop-form-input {
    padding-right: 18px;
}

.desktop-form-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.desktop-form-input:hover {
    border-color: #818cf8;
}

/* Icon mắt — to, không khối vuông */
.desktop-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    transition: color 0.2s ease;
}

.desktop-password-toggle:hover {
    color: #2563eb;
    background: none;
    border: none;
}

.desktop-password-toggle i {
    font-size: 22px;
    line-height: 1;
}

.desktop-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 12px;
}

/* Quên mật khẩu — màu hyperlink, to hơn, lùi vào trong */
.desktop-forgot-password {
    color: #7dd3fc;
    text-decoration: underline;
    font-size: 16px;
    font-weight: 500;
    margin-right: 8px;
    padding-right: 4px;
    transition: color 0.2s ease;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.desktop-forgot-password:hover {
    color: #bae6fd;
    text-decoration: underline;
}
.desktop-checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #dbeafe;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    margin-left: 14px;
}

.desktop-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.desktop-checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.desktop-checkbox-container input[type="checkbox"]:checked + .desktop-checkmark {
    background: #6366f1;
    border-color: #6366f1;
}

.desktop-checkbox-container input[type="checkbox"]:checked + .desktop-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

/* Checkbox to hơn */
.desktop-form-actions {
    display: flex;
    justify-content: flex-end;
}

.desktop-login-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.desktop-login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.4);
}

.login-page-header {
    position: relative;
    z-index: 2;
}

.login-page-footer {
    position: fixed;
    bottom: 0;
    z-index: 2;
}

@media (max-width: 900px) {
    .desktop-login-card {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }

    .desktop-login-sidebar {
        flex: 0 0 200px;
        min-height: 200px;
    }
}
