.demo-login {
max-width: 580px;
margin: auto;
padding: 35px 30px 25px;
background: rgba(115,190,235,.28);
border-radius: 28px;
border-top: 10px solid #ff6a00;
box-sizing: border-box;
}
.demo-login h1 {
text-align: center;
color: white;
font-size: 28px;
margin-bottom: 25px;
}
.demo-login label {
display: block;
color: white;
font-size: 12px;
font-weight: bold;
margin-bottom: 6px;
}
.demo-login input {
width: 100%;
height: 44px;
padding: 0 15px;
margin-bottom: 12px;
border: 2px solid white;
border-radius: 11px;
box-sizing: border-box;
}
.demo-login button {
width: 100%;
height: 46px;
border: none;
border-radius: 35px;
background: #d9d9d9;
color: #999;
font-weight: bold;
cursor: pointer;
}
.demo-login button.active {
background: #ff6a00;
color: white;
}
.demo-login .forgot {
text-align: right;
color: white;
font-size: 12px;
margin-bottom: 15px;
}
.demo-login .demo-message {
color: white;
text-align: center;
margin-top: 15px;
}
const corporate = document.getElementById("demoCorporate");
const user = document.getElementById("demoUser");
const password = document.getElementById("demoPassword");
const button = document.getElementById("demoButton");
const message = document.getElementById("demoMessage");
function checkDemo() {
const lengkap =
corporate.value.trim() !== "" &&
user.value.trim() !== "" &&
password.value.trim() !== "";
button.disabled = !lengkap;
button.classList.toggle("active", lengkap);
}
[corporate, user, password].forEach(input => {
input.addEventListener("input", checkDemo);
});
button.addEventListener("click", function() {
message.textContent =
"Demo pembelajaran: data tidak dikirim atau disimpan.";
});
checkDemo();