/* ── Reset WP login to match handshake ───────────────────────────────── */

body.login {
    background: #f7f7f5;  /* match --bg from handshake */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Logo / site icon area */
body.login div#login h1 a {
    background-image: url('<?php echo esc_url(get_site_icon_url(84)); ?>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 1.5rem;
    display: block;
}

/* Remove the card box WP adds */
body.login #loginform,
body.login #lostpasswordform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Labels */
body.login label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* Inline the links below login */
#login{display:flex;flex-direction:row;flex-wrap:wrap;gap:25px;}
#login h1{flex:0 0 100%;}
#login form{flex:0 0 100%;}
#login > p{flex:0 0 calc(50% - 25px);padding:0 !important;margin:0 !important;}
#login p.forgetmenot{margin-bottom:15px;}

/* Inputs */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #ffffff;
    box-shadow: none;
    height: auto;
    transition: border-color 0.15s, box-shadow 0.15s;
}
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
    outline: none;
}

/* Submit button */
body.login .button-primary,
body.login input[type="submit"] {
    background: #1a1a1a !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    padding: 0.7rem 1rem !important;
    height: auto !important;
    width: 100% !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: opacity 0.15s !important;
    cursor: pointer !important;
    line-height:1.25em !important;
}
body.login .button-primary:hover,
body.login input[type="submit"]:hover {
    opacity: 0.85 !important;
}

/* Remove "Register" and nav links */
body.login #nav a[href*="register"] { display: none !important; }

/* "Lost your password" and back-to-site links — muted like handshake footer */
body.login #nav,
body.login #backtoblog {
    text-align: center;
    font-size: 0.8125rem;
    color: #6b6b6b;
}
body.login #nav a,
body.login #backtoblog a {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Constrain width like handshake card */
body.login #login {
    width: 420px;
    max-width: 100%;
    padding: 2rem 1rem;
}

/* Error/notice boxes */
body.login #login_error,
body.login .message {
    border-radius: 8px;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}
body.login #login_error { background: #fdf2f2; color: #9b1c1c; border: 1px solid #fca5a5; }
body.login .message     { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
