/* 
   CEMGI "White Luxury" Theme - v6.0 Supreme Edition
   Maximum Interaction, Parallax, and Shimmering Aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --brand-green: #15803d;
    --brand-green-hover: #166534;

    --input-bg: #ffffff;
    --input-border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-white);
    color: var(--text-main);
}

.layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Cursor Light */
.cursor-light {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 128, 61, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
}

.layout:hover~.cursor-light,
body:hover .cursor-light {
    opacity: 1;
}

/* --- HERO SECTION --- */
.hero-section {
    flex: 1;
    background-color: var(--bg-light);
    background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid #f1f5f9;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(248, 250, 252, 0.9) 100%);
    pointer-events: none;
    z-index: 6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 480px;
    transition: transform 0.1s ease-out;
    /* For JS parallax */
    will-change: transform;
    pointer-events: none;
    /* Let mouse pass to particles/hero-section */
}

.hero-content .nav-link,
.hero-content .brand-badge {
    pointer-events: auto;
    /* Buttons and Logo still interactive */
}

/* Animations */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

@keyframes titleShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    width: 180px;
    height: 180px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 50px;
    box-shadow:
        15px 15px 40px rgba(148, 163, 184, 0.3),
        -15px -15px 40px #ffffff,
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 15;
    transition: transform 0.2s ease-out, box-shadow 0.4s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.brand-badge:hover {
    box-shadow:
        25px 25px 60px rgba(148, 163, 184, 0.4),
        -25px -25px 60px #ffffff,
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.logo-main {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.06));
    animation: heartBeat 3s infinite ease-in-out;
    transform: translateZ(40px);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(90deg,
            var(--text-main) 0%,
            #475569 25%,
            var(--text-main) 50%,
            #475569 75%,
            var(--text-main) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.2s ease-out, titleShimmer 10s linear infinite;
}

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0;
    animation: fadeInUp 1.4s ease-out;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 45px;
    padding: 16px 32px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 100px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.6s ease-out;
}

.nav-link:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-green);
    color: var(--brand-green);
}

/* --- FORM SECTION --- */
.login-sidebar {
    width: 520px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    position: relative;
    z-index: 20;
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.04);
    animation: slideInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-wrapper {
    width: 100%;
}

.header-text h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.input-float {
    position: relative;
    margin-bottom: 24px;
}

.input-float input {
    width: 100%;
    height: 64px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 24px 20px 8px 20px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.input-float input:focus {
    background: #fff;
    border-color: var(--brand-green);
    box-shadow: 0 10px 20px rgba(21, 128, 61, 0.05);
}

.input-float label {
    position: absolute;
    left: 20px;
    top: 22px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-float input:focus+label,
.input-float input:not(:placeholder-shown)+label {
    top: 10px;
    font-size: 11px;
    color: var(--brand-green);
    font-weight: 800;
    text-transform: uppercase;
}

.btn-primary {
    width: 100%;
    height: 64px;
    background: var(--brand-green);
    color: white;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(21, 128, 61, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(21, 128, 61, 0.4);
}

.version-badge {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.version-pill {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

/* Responsive */
@media (max-width: 1024px) {
    .login-sidebar {
        width: 450px;
        padding: 0 50px;
    }
}

@media (max-width: 850px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    .layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-section {
        min-height: 40vh;
        padding: 40px 20px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        flex: none;
    }

    .brand-badge {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
        border-radius: 30px;
    }

    .logo-main {
        height: 60px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
        padding: 0 20px;
    }

    .nav-link {
        margin-top: 25px;
        padding: 12px 24px;
        font-size: 14px;
    }

    .login-sidebar {
        width: 100%;
        padding: 40px 24px;
        flex: 1;
        box-shadow: none;
        animation: fadeInUp 1s ease-out;
    }

    .login-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .header-text h2 {
        font-size: 28px;
        text-align: center;
    }

    .header-text p {
        text-align: center;
        font-size: 14px;
    }

    .version-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 40px;
        padding-bottom: 20px;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 35vh;
        padding: 30px 15px;
    }

    /* Hide some elements to save space on very small screens */
    .hero-content p {
        display: none;
    }

    .nav-link {
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-top: 10px;
    }

    .nav-link {
        margin-top: 20px;
        padding: 14px 28px;
        font-size: 15px;
        background: #f1f5f9;
        border: 2px solid var(--brand-green);
        box-shadow: 0 4px 15px rgba(21, 128, 61, 0.1);
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    .brand-badge {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .logo-main {
        height: 50px;
    }

    .header-text h2 {
        font-size: 24px;
    }

    .input-float {
        margin-bottom: 18px;
    }

    .input-float input {
        height: 60px;
        font-size: 15px;
        border-radius: 15px;
        padding: 22px 18px 6px 18px;
    }

    .input-float label {
        left: 18px;
        font-size: 15px;
    }

    .btn-primary {
        height: 60px;
        font-size: 16px;
        border-radius: 15px;
    }

    .login-sidebar {
        padding: 30px 20px;
    }
}