/* Tetapkan latar belakang dan gaya umum */
body {
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #DCDCDC;
}

/* Gaya kontainer log masuk */
.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

/* Gaya tajuk */
.login-container h2 {
    margin-bottom: 20px;
    color: #800000;
}

/* Gaya umum untuk input dan butang */
.login-container form input,
.login-container form button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Gaya untuk medan input apabila fokus */
.login-container form input:focus {
    border-color: #800000;
    outline: none;
}

/* Gaya untuk butang */
.login-container form button {
    background: #800000;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

/* Gaya apabila butang disentuh */
.login-container form button:hover {
    background: linear-gradient(135deg, #4d0000, #800000);
    transform: scale(1.02);
}

/* Gaya untuk kumpulan input (label dan input dalam satu baris) */
.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    width: 100%;
}

/* Gaya untuk label */
.input-group label {
    width: 50%;
    text-align: left;
    margin-right: 10px;
    font-size: 14px;
    color: #555;
}

/* Gaya untuk medan input */
.input-group input {
    width: 70%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Gaya untuk popup mesej ralat */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8d7da;
    padding: 20px;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Gaya untuk butang dalam popup */
.popup button {
    background: #842029;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 10px;
}

/* Gaya apabila butang popup disentuh */
.popup button:hover {
    background: #721c24;
}