/* Full-page background */
html, body {
    height: 100%;
    margin: 0;
}

body.login-pf,
.kcBodyClass {
    min-height: 100vh;
    background: url("../img/login-bg.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Optional dark overlay */
body.login-pf::before,
.kcBodyClass::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.35);
    pointer-events: none;
    z-index: 0;
}

/* Center the whole login wrapper */
.login-pf-page,
.pf-v5-c-login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 auto !important;
    padding: 20px;
    box-sizing: border-box;
}

/* Login card */
.card-pf,
.pf-v5-c-login__main {
    background: rgba(255, 255, 255, 0.97) !important;
    border: none !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    padding: 36px 40px !important;
    margin: 0 auto !important;
}

/* Hide default small header/logo text */
#kc-header,
#kc-header-wrapper,
.kc-logo-text {
    display: none !important;
}

/* Put ONE logo above the heading */
.pf-v5-c-login__main-header::before {
    content: "";
    display: block;
    width: 320px;
    height: 120px;
    margin: 0 auto 18px auto;
    background: url("../img/ewlogo.png") no-repeat center center;
    background-size: contain;
}

/* Remove old extra injected logo */
#kc-form-wrapper::before {
    display: none !important;
    content: none !important;
}

/* Heading */
/* #kc-page-title {
    text-align: center;
    color: #0a72e7 !important;
    font-weight: 700;
    margin-bottom: 28px !important;
} */
#kc-page-title {
    display: none !important;
}

/* Form spacing */
#kc-form-wrapper {
    margin-top: 0 !important;
}

.form-group {
    margin-bottom: 18px !important;
}

/* Labels */
label {
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    display: inline-block;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    border: 1px solid #d7dce3 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    box-sizing: border-box;
    background: #fff !important;
}

/* Password reveal button area */
button[aria-label*="password"],
.pf-v5-c-input-group__item,
.pf-v5-c-button.pf-m-control {
    border-radius: 10px !important;
}

/* Login button */
#kc-login,
input[type="submit"] {
    width: 100%;
    background: #0a72e7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700;
    padding: 14px 18px !important;
    margin-top: 16px;
    box-shadow: none !important;
}

#kc-login:hover,
input[type="submit"]:hover {
    background: #085fc0 !important;
}

/* Links */
a {
    color: #e77917 !important;
}

a:hover {
    color: #c9630f !important;
    text-decoration: none;
}
