* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url("../images/bgLogin1.png") no-repeat center center fixed;
    background-size: cover;   /* biar nutup layar full */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #000; /* fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: auto;
    height: 150px;
    margin-bottom: 15px;
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    display: inline-block;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 30px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff !important;
    color: #000 !important;
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #555;
}

.btn-login {
    width: 100%;
    background: #0056b3;
    border: none;
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    background-color: #007bff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.text-danger {
    color: #EF4444;
    font-size: 12px;
    margin-top: 5px;
}

.alert {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-danger {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3B82F6, #1E3A8A, #3B82F6, #1E3A8A);
    border-radius: 20px;
    z-index: -1;
    background-size: 300% 300%;
    animation: gradient 6s ease infinite;
    opacity: 0.3;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
