/*
 * Kittbit BrandLogin - Custom Login Page Styles
 *
 * This file uses CSS variables for easy customisation.
 * See code comments for guidance on each section.
 */

:root {
    /* === Brand Colours === */
    --kbl-bg-color: #dddddd;
    --kbl-form-bg: rgba(255, 255, 255, 0);
    --kbl-primary: #0073aa;
    --kbl-accent: #229fd8;
    --kbl-error: #dc3232;
    --kbl-link: #093fb4;
    --kbl-link-hover: #229fd8;
    --kbl-border-radius: 0px;
    --kbl-font-family: 'Raleway', Arial, sans-serif;
    --kbl-logo-width: 320px;
    --kbl-logo-height: 84px;
}

body.login.kbl-custom-login {
    background: var(--kbl-bg-color);
    font-family: var(--kbl-font-family);
}

/* === Logo === */
.login h1 a {
    width: var(--kbl-logo-width) !important;
    height: var(--kbl-logo-height) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    margin-bottom: 24px;
}

/* === Login Form Container === */
#login {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.login form {
    background: var(--kbl-form-bg);
    border-radius: var(--kbl-border-radius);
    padding: 32px 24px;
    border: none !important;
    box-shadow: none;
}

/* === Username & Password Fields === */
.login label {
    font-weight: 600;
    margin-bottom: 6px;
    display: none;
}
.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: var(--kbl-border-radius);
    border: 1px solid #ccc;
    margin-bottom: 16px;
    font-size: 16px;
    background: none;
    font-family: var(--kbl-font-family);
}

.login input[type="text"]:autofill,
.login input[type="password"]:autofill,
.login input[type="text"]:-webkit-autofill,
.login input[type="password"]:-webkit-autofill {
    background: rgba(255,255,255,0.2) !important;
    /* Optionally, override box-shadow if needed */
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.2) inset !important;
}

.login input[type="checkbox"] {
    background: none !important;
    border-radius: 10px !important;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: 1px;
}

.login input[type="checkbox"]:checked::before {
    height: 3rem !important;
    width: 3rem !important;
    margin-left: -1rem !important;
    margin-top: -1rem !important;
}

/* === Remember Me Checkbox === */
.login .forgetmenot label {
    font-size: 15px;
    color: #333;
    display: flex;
    font-family: var(--kbl-font-family);
}

.login form .forgetmenot {
    display: flex;
    justify-content: center;
    float: none;

}

/* === Login Button === */
#wp-submit {
    background: var(--kbl-primary);
    color: #fff;
    border: none;
    border-radius: var(--kbl-border-radius);
    padding: 12px 0;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}
#wp-submit:hover {
    background: var(--kbl-accent);
}

/* === Lost Password & Back to Site Links === */
.login #nav, .login #backtoblog {
    margin-top: 18px;
    text-align: center;
    display: none;
}
.login #nav a, .login #backtoblog a {
    color: var(--kbl-link);
    text-decoration: none;
    transition: color 0.2s;
}
.login #nav a:hover, .login #backtoblog a:hover {
    color: var(--kbl-link-hover);
}

/* === Error & Message Notices === */
.login .message, .login .error {
    border-radius: var(--kbl-border-radius);
    padding: 12px 18px;
    margin-bottom: 18px;
    font-size: 15px;
}
.login .error {
    background: var(--kbl-error);
    color: #fff;
}

/* === Hide/Move Elements Example === */
/* To hide the 'Remember Me' checkbox, uncomment below: */
/* .login .forgetmenot { display: none !important; } */

/* To move the login form, use flex/grid on .login, e.g.: */
/* .login { display: flex; align-items: center; justify-content: center; min-height: 100vh; } */

/* Add more customisation below as needed. */
.login .privacy-policy-page-link {
    display: none;
}

.language-switcher {
    display: none;
}

.forgetmenot {
    margin-bottom: 2rem !important;
}