/* Custom Login Page Styler — front-end login page styles */

/* =========================
   Reset / base
   ========================= */
body.login {
    background-attachment: fixed !important;
}

body.login #login {
    width: 100% !important;
    max-width: var(--clps-form-w, 360px);
    margin: 60px auto;
    padding: 0 !important;
}

body.login #login::before,
body.login #login::after {
    display: none !important;
}

/* =========================
   Top header (title + custom image)
   ========================= */
.clps-login-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 0;
}

.clps-top-text {
    padding: 18px 24px;
    flex: 0 0 auto;
}

.clps-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    letter-spacing: 1px;
    line-height: 1.2;
}

.clps-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #50575e;
    line-height: 1.4;
}

.clps-top-image {
    flex: 1 1 auto;
    background-color: #e8e8e8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================
   Login form (frosted glass)
   ========================= */
body.login #loginform {
    padding: 28px 24px 22px !important;
    margin-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18) !important;
    /* background-color & backdrop-filter are injected by the plugin via inline style */
}

body.login #loginform label {
    color: #1d2327;
    font-weight: 600;
}

body.login #loginform .input,
body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    font-size: 14px;
    padding: 6px 10px !important;
    color: #1d2327;
    box-shadow: none !important;
}

body.login #loginform .input:focus,
body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
    background: #fff !important;
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1 !important;
    outline: none !important;
}

body.login #loginform .forgetmenot {
    margin: 0 0 14px;
}

body.login #loginform .forgetmenot label {
    font-weight: 500;
    color: #50575e;
}

/* Submit button */
body.login #loginform .submit,
body.login #loginform p.submit {
    margin: 0 !important;
    padding: 0 !important;
}

body.login #loginform .button-primary {
    width: 100% !important;
    height: 40px !important;
    border-radius: 6px !important;
    background: #2271b1 !important;
    border: none !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.35) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
}

body.login #loginform .button-primary:hover,
body.login #loginform .button-primary:focus {
    background: #135e96 !important;
    box-shadow: 0 2px 8px rgba(19, 94, 150, 0.45) !important;
    outline: none !important;
}

/* Logo (optional, if user set one) */
body.login h1 {
    display: none;
}

/* Hide default "powered by" / lost password link adjustments */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    margin: 18px 0 0 !important;
}

body.login #nav a,
body.login #backtoblog a {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.login #nav,
body.login #backtoblog {
    background: transparent;
}

body.login .login-info,
body.login .login #login_error,
body.login .login .message {
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Responsive */
@media screen and (max-width: 480px) {
    body.login #login {
        margin: 24px 12px;
    }
    .clps-login-header {
        flex-direction: column;
    }
    .clps-top-image {
        height: 80px !important;
        width: 100%;
    }
}
