/* Ensure body takes up full height and has no margin */
body {
    background-image: url('../background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Center the login form container */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
}

/* Header containing logo */
#kc-header-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

#kc-header-wrapper img {
    max-width: 100%;
    height: auto;
}

/* Login form container */
.kc-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;  /* Prevent the form from stretching too wide */
    padding: 1rem;
    box-sizing: border-box;
}

/* Form card style */
.card-pf {
    width: 100%;
    max-width: 400px;  /* Limit the width */
    min-height: 350px;
    height: auto;  /* Allow the form to adjust based on content */
    padding: 1.5rem;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Ensuring input elements and buttons are aligned properly */
input, button {
    width: 100%;  /* Full width */
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Button styling */
button {
    margin-top: 10px;
}

/* Adjust form title */
#kc-page-title {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Responsive styling for smaller screens */
@media (max-width: 480px) {
    .card-pf {
        max-width: 100%;  /* Full width on small screens */
        padding: 1rem;
    }
}
