/**
 * Custom Login Page
 * Replaces LoginPress plugin
 * Enqueued via functions.php → newww_custom_login_assets()
 */

body.login {
    background: #fafafa;
}

body.login div#login {
    width: 350px;
    max-width: calc(100% - 32px);
    padding: 0;
}

/* Logo */
body.login h1 a {
    background-image: url('https://izgodenpazar.bg/media/2024/11/izgoden-pazar.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 300px;
    height: 80px;
    display: block;
    margin: 0 auto 24px;
}

@media (max-width: 600px) {
    body.login h1 a {
        width: 175px;
        height: 50px;
    }
}

/* Form card */
body.login form#loginform,
body.login form#registerform,
body.login form#lostpasswordform {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 7px 30px rgba(0, 0, 0, 0.09);
    border: none;
    padding: 32px 36px;
}

/* Labels */
body.login form .login-username label,
body.login form .login-password label,
body.login form label {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

/* Input fields */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    border-radius: 30px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #1ea896;
    box-shadow: none;
    outline: none;
}

body.login input[type="text"]::placeholder,
body.login input[type="password"]::placeholder,
body.login input[type="email"]::placeholder {
    color: #aaaaaa;
    font-size: 14px;
}

/* Submit button */
body.login input[type="submit"],
body.login .button-primary {
    background: #fdca40;
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: none;
    text-shadow: none;
    height: auto;
    -webkit-appearance: none;
}

body.login input[type="submit"]:hover,
body.login .button-primary:hover,
body.login input[type="submit"]:focus,
body.login .button-primary:focus {
    background: #1ea896;
    color: #ffffff;
    box-shadow: none;
    border: none;
    outline: none;
}

/* Nav links (забравена парола, регистрация) */
body.login #nav {
    padding: 0;
    display: flex;
    justify-content: center;
    color: #2C3338;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 16px;
}

body.login #nav a {
    color: #1ea896;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

body.login #nav a:hover {
    color: #0B2027;
}

body.login #backtoblog {
    display: none;
}

body.login .language-switcher {
    display: none;
}

/* Privacy policy link - скрит */
body.login .privacy-policy-page-link {
    display: none;
}

/* Remember me */
body.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.login .forgetmenot label {
    font-size: 13px;
    color: #555555;
    margin: 0;
}

/* Error / message boxes */
body.login #login_error,
body.login .message {
    border-radius: 12px;
    border-left: none;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

body.login #login_error {
    background: #fff0f0;
    color: #c0392b;
}

body.login .message {
    background: #f0faf8;
    color: #0f6e56;
}

/* Hide default WP login page title */
body.login #login h1 {
    margin-bottom: 0;
}

body.login {
    background: #fafafa;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
}