/* Resetting default margin, padding, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fa;
    display: grid;
    place-items: center; /* Vertikal dan horizontal center */
    height: 90vh;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.5px;
}

form {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    display: grid;
    gap: 25px;
}

label {
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="password"]:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.error-message {
    font-size: 1.1rem;
    color: red;
    margin-top: 10px;
    text-align: center;
}

/* Adding a subtle hover effect for input */
input[type="password"]:hover {
    border-color: #888;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    form {
        padding: 30px;
        max-width: 90%;
    }

    input[type="password"], button {
        font-size: 1rem;
    }
}
