/* ==============================================
   LOGIN PAGE STYLE (Final Responsive Version)
   ============================================== */

   html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #f9fafb;
}

/* === WRAPPER === */
.login-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    flex-wrap: wrap;
}

/* === LEFT SIDE (Hero Section) === */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Moving grid background effect */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    text-align: center;
}

/* Logo di hero section */
.logo-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 0 auto;
}

/* Versi kecil untuk tampilan mobile */
.small-logo {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

/* Animasi teks hero */
.hero-content h1,
.hero-content p,
.hero-content .text-center {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RIGHT SIDE (Form Login) === */
.login-form-section {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 2rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .hero-section {
        display: none !important;
    }

    .login-form-section {
        flex: 1 1 100%;
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-control-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}
