/**
 * StoreKit - Login Page Styles
 */

/* Base styles for better defaults */
body.login {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#login {
    padding: 8% 0 0;
    margin: auto;
}

/* Logo */
#login h1 a,
.login h1 a {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 25px;
}

/* Form */
.login form {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

/* Inputs */
.login input[type="text"],
.login input[type="password"] {
    font-size: 16px;
    padding: 10px 12px;
    height: auto;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Button */
.wp-core-ui .button-primary {
    font-size: 14px;
    padding: 8px 20px;
    height: auto;
    line-height: 1.5;
    border-radius: 4px;
    transition: opacity 0.2s;
}

/* Links */
.login #backtoblog,
.login #nav {
    font-size: 13px;
}

/* Privacy Policy */
.login .privacy-policy-page-link {
    margin-top: 15px;
}

/* Error Messages */
.login #login_error,
.login .message,
.login .success {
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Remember Me */
.login .forgetmenot {
    font-size: 13px;
}

/* Two Column Layout (Pro) */
.login.storekit-two-column {
    display: flex;
    padding: 0;
    margin: 0;
}

.login.storekit-two-column #login {
    width: 50%;
    padding: 5% 3%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.login.storekit-two-column .storekit-login-image {
    width: 50%;
    background-size: cover;
    background-position: center;
}

@media screen and (max-width: 768px) {
    .login.storekit-two-column {
        flex-direction: column;
    }

    .login.storekit-two-column #login,
    .login.storekit-two-column .storekit-login-image {
        width: 100%;
    }

    .login.storekit-two-column .storekit-login-image {
        height: 200px;
    }
}
