body {
    background-color: #f8f9fa;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    overflow: hidden;
}

.navbar {
    background-color: #0b1049 !important;
    padding: 1rem;
}

.navbar-brand {
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.navbar-brand img {
    width: 40px;
    margin-right: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: bold;
    margin-bottom: 2px;
}

.brand-subtitle {
    font-weight: bold;
}

.nav-link {
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.navbar-nav {
    position: relative;
}

.nav-item.dropdown {
    position: static;
}

.dropdown-menu {
    background-color: #0b1049;
    border: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    position: absolute !important;
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 200px;
}

.dropdown-item {
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.main-content {
    display: flex;
    height: calc(100vh - 76px);
    overflow: hidden;
}

.login-section {
    flex: 0 0 400px;
    padding: 2rem;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(248, 249, 250, 1) 50%,
            rgba(240, 242, 245, 1) 100%);
    margin-left: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    position: relative;

    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Background Geometri untuk Login Form */
.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.06;
    pointer-events: none;
    background-image: 
        /* Triangles - UNSOED colors */
        linear-gradient(45deg, transparent 40%, #0b1049 41%, #0b1049 42%, transparent 43%),
        linear-gradient(-45deg, transparent 40%, #ffc107 41%, #ffc107 42%, transparent 43%),
        linear-gradient(135deg, transparent 40%, #1976d2 41%, #1976d2 42%, transparent 43%),
        /* Circles - soft accents */
        radial-gradient(circle at 20% 30%, #0b1049 1.5px, transparent 2px),
        radial-gradient(circle at 80% 70%, #ffc107 1.5px, transparent 2px),
        radial-gradient(circle at 60% 20%, #1976d2 1px, transparent 2px),
        radial-gradient(circle at 30% 80%, #4caf50 1px, transparent 2px),
        /* Lines - geometric structure */
        linear-gradient(90deg, transparent 48%, #0b1049 49%, #0b1049 50%, transparent 51%),
        linear-gradient(0deg, transparent 48%, #ffc107 49%, #ffc107 50%, transparent 51%),
        linear-gradient(45deg, transparent 48%, #1976d2 49%, #1976d2 50%, transparent 51%),
        /* Hexagons and diamonds */
        linear-gradient(30deg, transparent 45%, #0b1049 46%, #0b1049 47%, transparent 48%),
        linear-gradient(150deg, transparent 45%, #ffc107 46%, #ffc107 47%, transparent 48%),
        /* Small dots pattern */
        radial-gradient(circle at 50% 50%, #0b1049 0.5px, transparent 1px);
    background-size: 
        70px 70px,
        80px 80px,
        65px 65px,
        50px 50px,
        60px 60px,
        55px 55px,
        70px 70px,
        100px 100px,
        90px 90px,
        85px 85px,
        95px 95px,
        88px 88px,
        20px 20px;
    background-position: 
        0 0,
        15px 15px,
        30px 30px,
        25px 25px,
        40px 40px,
        55px 55px,
        70px 70px,
        60px 60px,
        75px 75px,
        90px 90px,
        105px 105px,
        120px 120px,
        0 0;
    animation: loginGeometryFloat 80s linear infinite;
}

/* Additional decorative layer */
.login-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image: 
        /* Large accent shapes */
        linear-gradient(60deg, transparent 30%, rgba(11, 16, 73, 0.4) 31%, rgba(11, 16, 73, 0.4) 32%, transparent 33%),
        linear-gradient(120deg, transparent 30%, rgba(255, 193, 7, 0.4) 31%, rgba(255, 193, 7, 0.4) 32%, transparent 33%),
        /* Organic curves */
        radial-gradient(ellipse at 15% 35%, transparent 40%, rgba(25, 118, 210, 0.3) 41%, transparent 42%),
        radial-gradient(ellipse at 85% 65%, transparent 40%, rgba(76, 175, 80, 0.3) 41%, transparent 42%);
    background-size: 
        150px 150px,
        130px 130px,
        120px 120px,
        140px 140px;
    background-position: 
        -30px -30px,
        80px 80px,
        150px 30px,
        30px 150px;
    animation: loginGeometryFloat2 100s linear infinite reverse;
}

@keyframes loginGeometryFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(3px, -2px) rotate(0.8deg);
    }
    50% {
        transform: translate(-2px, 2px) rotate(-0.5deg);
    }
    75% {
        transform: translate(2px, -1px) rotate(0.3deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes loginGeometryFloat2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-2px, 3px) rotate(-0.4deg) scale(1.02);
    }
    66% {
        transform: translate(3px, -2px) rotate(0.6deg) scale(0.98);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.login-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.login-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.hero-section {
    flex: 1;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
}

.logo-login {
    width: 80px;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-login:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 0.6rem;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.98);
    border-color: rgba(11, 16, 73, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(11, 16, 73, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
}

.btn-masuk {
    background: linear-gradient(to right,
            #ffc107 0%,
            #ffcd38 100%);
    border: none;
    padding: 0.6rem;
    width: 100%;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.btn-masuk::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: left 0.5s ease;
}

.btn-masuk:hover::before {
    left: 100%;
}

.btn-masuk:hover {
    background: linear-gradient(to right,
            #ffb300 0%,
            #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
}

h4 {
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #0b1049;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: #0b1049;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.03);
}

.small {
    font-size: 0.75rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .hero-section {
        display: none;
    }

    .login-section {
        flex: 1;
        margin: 0 auto;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    /* Optimize background for mobile */
    .login-section::before {
        opacity: 0.04;
        background-size: 
            50px 50px,
            60px 60px,
            45px 45px,
            35px 35px,
            40px 40px,
            38px 38px,
            50px 50px,
            70px 70px,
            65px 65px,
            60px 60px,
            68px 68px,
            62px 62px,
            15px 15px;
        animation-duration: 100s;
    }
    
    .login-section::after {
        opacity: 0.025;
        background-size: 
            100px 100px,
            90px 90px,
            80px 80px,
            95px 95px;
        animation-duration: 120s;
    }

    .main-content {
        height: auto;
        min-height: calc(100vh - 76px);
    }

    .navbar-brand {
        font-size: 0.8rem;
    }

    .navbar-brand img {
        width: 30px;
    }
}

@media (max-width: 576px) {
    .brand-text {
        display: none;
    }
}

@media (max-width: 991px) {
    .brand-text {
        font-size: 0.75rem;
    }
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
    z-index: 10;
}

.password-toggle:hover {
    color: #495057;
}

.form-control.password-input {
    padding-right: 40px;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
    position: absolute;
    bottom: -18px;
}

.form-group {
    position: relative;
    margin-bottom: 1.2rem;
    min-height: 75px;
    padding: 0.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group:hover {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

.password-field .form-control.is-invalid {
    padding-right: 40px !important;
    background-image: none;
}

.form-control.is-invalid~.password-toggle {
    color: #dc3545;
}

.form-control.is-invalid~.password-toggle:hover {
    color: #bb2d3b;
}