* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    background-image: url('emas.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Background overlay untuk efek yang sama seperti gambar */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 215, 0, 0.1);
    z-index: 0;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: #4A90E2;
    border-radius: 20px;
    padding: 40px 30px 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo::before {
    content: none; /* hilangkan bentuk kotak kuning bawaan */
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #666;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    background: white;
    font-size: 14px;
    outline: none;
    color: #333;
}

.form-input::placeholder {
    color: #999;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    z-index: 2;
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
    margin-top: 10px;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
}

.login-btn {
    width: 100%;
    background: #2E5BBA;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: #1e4ba8;
}

.register-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.register-link a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .login-card {
        padding: 35px 25px 25px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .form-input {
        padding: 11px 14px 11px 38px;
        font-size: 13px;
    }
    
    .input-icon {
        width: 16px;
        height: 16px;
        left: 11px;
    }
}

@media (max-width: 320px) {
    .login-card {
        padding: 30px 20px 20px;
        max-width: 300px;
    }
}