* {
    box-sizing: border-box;
    font-family: 'Calibri', 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background penuh dengan blur */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('public/image/loginpic.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

/* Overlay blur */
.login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

/* Marquee */
.marquee-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 0;
    z-index: 3;
    overflow: hidden;
    white-space: nowrap;
}

/* ===== LOGO DALAM KOTAK LOGIN ===== */
.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* ===== LOGIN BOX 3D + BLUR ===== */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 2;
    position: relative;
}

.login-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover {
    transform: translateY(-8px);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.4),
        0 12px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ===== HEADER ===== */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    margin: 10px 0 5px;
    color: #1b5e20;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-header p {
    color: #555;
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== INPUT GROUP ===== */
.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2e7d32;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* ===== ERROR MESSAGE ===== */
.error-message {
    color: #c62828;
    background: rgba(255, 235, 238, 0.9);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
    border-left: 4px solid #c62828;
}

/* ===== BUTTON LOGIN ===== */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.5);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.4);
}

.btn-login:disabled {
    background: #90a4ae;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 11px;
    opacity: 0.8;
}

/* ===== RESPONSIF ===== */
@media (max-width: 480px) {
    .login-box {
        padding: 25px;
        border-radius: 16px;
    }
    
    .login-logo {
        width: 80px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
}