/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Container for centering content */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    padding: 20px;
}

/* Heading styles */
h1 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

/* Login box styles */
.kotak_login {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.tulisan_login {
    text-align: center; /* Center the "Silahkan login" text */
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Form styles */
label {
    display: block;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Input styles */
.form_login {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form_login:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Captcha container */
.captcha-container {
    display: flex;
    justify-content: center; /* Center the captcha image */
    align-items: center;
    margin-bottom: 1rem;
}

.captcha-container img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure the image is treated as a block element */
}

/* Button styles (for both LOGIN and Kembali) */
.tombol_login, .link {
    width: 100%;
    padding: 10px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* Remove underline for link */
    display: inline-block; /* Ensure link behaves like a button */
    transition: background-color 0.3s ease;
}

.tombol_login:hover, .link:hover {
    background-color: #357abd;
}

/* Link container */
.link-container {
    text-align: center;
    margin-top: 1rem;
}

/* Media queries for mobile responsiveness */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .kotak_login {
        padding: 1.5rem;
    }

    .tulisan_login {
        font-size: 1rem;
    }

    .form_login {
        font-size: 0.9rem;
        padding: 8px;
    }

    .tombol_login, .link {
        font-size: 0.9rem;
        padding: 8px;
    }

    label {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .kotak_login {
        padding: 1rem;
    }
}