/* =========================================
   FLEXILINE LOGIN PAGE
========================================= */

body.login {

    background:
        linear-gradient(
            135deg,
            #f4f7fb 0%,
            #e9eef7 100%
        );

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Segoe UI", sans-serif;
}

/* =========================================
   LOGIN WRAPPER
========================================= */

#login {

    width: 380px;
    padding: 0;
}

/* =========================================
   LOGO
========================================= */

.login h1 {

    margin-bottom: 25px;
}

.login h1 a {

    background-image:
        url('https://flexiline.communitymarkethub.com/wp-content/uploads/2026/05/FlexiLine-Logo_500x250.png');

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    width: 220px;
    height: 80px;

    margin: 0 auto;

    display: block;

    /* Remove WP default text */
    text-indent: -9999px;

    /* White plate behind transparent logo */
    background-color: white;

    border-radius: 14px;

    box-shadow:
        0 5px 18px rgba(0,0,0,0.08);
}

/* =========================================
   LOGIN FORM
========================================= */

.login form {

    background: white;

    border: 1px solid #dbe3ef;

    border-radius: 18px;

    padding: 34px;

    box-shadow:
        0 12px 35px rgba(25,38,112,0.08);
}

/* =========================================
   LABELS
========================================= */

.login label {

    color: #192670;

    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   INPUT FIELDS
========================================= */

.login input[type="text"],
.login input[type="password"] {

    background: #f8fafc;

    border: 1px solid #cfd8e3;

    border-radius: 10px;

    padding: 13px 14px;

    transition: all 0.2s ease;

    box-shadow: none;
}

/* Focus state */
.login input[type="text"]:focus,
.login input[type="password"]:focus {

    border-color: #192670;

    box-shadow:
        0 0 0 3px rgba(25,38,112,0.12);

    background: white;
}

/* =========================================
   BUTTON
========================================= */

.wp-core-ui .button-primary {

    width: 100%;

    background: #192670;

    border: none;

    border-radius: 10px;

    min-height: 46px;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.2s ease;
}

/* Hover */
.wp-core-ui .button-primary:hover {

    background: #10194f;

    transform: translateY(-1px);
}

/* =========================================
   REMEMBER ME
========================================= */

.forgetmenot label {

    color: #4b5563;
}

/* =========================================
   LINKS
========================================= */

#nav,
#backtoblog {

    text-align: center;
}

#nav a,
#backtoblog a {

    color: #192670;

    font-weight: 500;

    text-decoration: none;
}

#nav a:hover,
#backtoblog a:hover {

    text-decoration: underline;
}

/* =========================================
   ALERTS
========================================= */

.login #login_error,
.login .message,
.login .success {

    border-left: 4px solid #192670;

    border-radius: 10px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    #login {

        width: calc(100% - 30px);
    }

    .login form {

        padding: 24px;
    }

    .login h1 a {

        width: 190px;
        height: 70px;
    }
}