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);

    /* 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 */
}

.login-content {
    flex: 1;
}

.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;
}

.form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    padding: 0.6rem;
    font-size: 0.85rem;
}

.form-control:focus {
    background-color: #fff;
    border-color: rgba(11, 16, 73, 0.2);
    box-shadow: 0 0 0 0.2rem rgba(11, 16, 73, 0.1);
}

.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;
}

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

h4 {
    font-weight: 600;
    font-size: 1.2rem;
}

.form-label {
    font-weight: 500;
    font-size: 0.85rem;
}

.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;
    }

    .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;
}

.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;
}