/* ==========================================================================
   AUTHENTICATION VIEW (LOGIN) - SPLIT LAYOUT
   ========================================================================== */
.login-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background-color: var(--bg-main);
}

.login-split-visual {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 9, 12, 0.95), rgba(16, 185, 129, 0.08));
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-overlay {
    position: absolute;
    /* Extra size to avoid clipping during animation */
    top: -40px;
    left: -40px;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.grid-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, var(--bg-main) 100%);
    z-index: 2;
}

.visual-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 650px;
    width: 100%;
}

.visual-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
    margin-bottom: 35px;
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
    }
    50% {
        transform: translateY(-15px);
        filter: drop-shadow(0 0 35px rgba(16, 185, 129, 0.7));
    }
}

.visual-content h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.visual-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-split-form {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-main);
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInForm 1s ease-out 0.5s forwards;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .login-split-layout {
        flex-direction: column-reverse;
    }
    .login-split-visual {
        flex: none;
        padding: 40px 20px 0 20px;
        border-left: none;
        border-bottom: none;
    }
    .visual-logo {
        max-width: 220px;
        margin-bottom: 10px;
    }
    .visual-content h2, 
    .visual-content p {
        display: none;
    }
    .login-split-form {
        padding: 20px;
        align-items: flex-start;
    }
    .form-wrapper {
        padding: 20px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
}
