/* anccer — WP login page overrides (used via WPS Hide Login) */

:root {
    --color-primary:       #1a3a5c;
    --color-primary-light: #2d6a9f;
    --color-bg:            #f0f2f5;
    --color-surface:       #ffffff;
    --color-border:        #e4e6eb;
    --color-text:          #1c1e21;
    --color-text-muted:    #65676b;
    --radius:              8px;
}

/* ── Page shell ── */

html { background: var(--color-bg); }

body.login {
    background: var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* ── Card wrapper ── */

body.login #login {
    width: 100%;
    max-width: 320px;
    padding: 1rem 1.75rem;
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

/* ── Logo (injected by PHP hook) ── */

.anccer-login-logo {
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
}

.anccer-login-logo img {
    height: 36px;
    width: auto;
    display: inline-block;
}

/* Hide default WP logo */
body.login #login h1 { display: none; }

/* ── Auth header ── */

.anccer-login-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.anccer-login-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.anccer-login-alt {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
}

.anccer-login-alt:hover { color: var(--color-primary); }

/* ── Error message ── */

body.login #login_error,
body.login .message {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-left: none;
    border-radius: var(--radius);
    padding: 0.6rem 0.875rem;
    font-size: 13px;
    margin-bottom: 1rem;
}

body.login .message {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}

/* ── Form fields ── */

#loginform p { margin: 0; }

#loginform p > label { display: none; }

#loginform input[type="text"],
#loginform input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.5rem 0.875rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.15s;
    margin-bottom: 0.5rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: var(--color-primary-light);
    box-shadow: none;
}

/* ── Password wrap (built by JS) ── */

.password-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.password-wrap input[type="password"],
.password-wrap input[type="text"] {
    margin-bottom: 0;
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0;
    line-height: 1;
}

.password-toggle:hover { color: var(--color-primary); }

/* ── Remember Me + Forgot Password row (built by JS) ── */

.anccer-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.125rem 0 0.75rem;
}

.anccer-login-row .forgetmenot {
    margin: 0;
}

#loginform .forgetmenot { margin: 0; }

#loginform .forgetmenot label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    color: var(--color-text-muted);
    cursor: pointer;
}

#loginform .forgetmenot input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.anccer-login-forgot {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.anccer-login-forgot:hover { color: var(--color-primary); }

/* ── Submit button ── */

#loginform .submit { margin-top: 0; }

#wp-submit {
    display: block;
    width: 100%;
    padding: 0.55rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

#wp-submit:hover,
#wp-submit:focus { opacity: 0.9; box-shadow: none; }

/* ── Privacy link (injected by PHP hook) ── */

.anccer-login-privacy {
    text-align: center;
    margin-top: 0.625rem;
    font-size: 13px;
    color: var(--color-text-muted);
}

.anccer-login-privacy a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.anccer-login-privacy a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ── Hide WP default nav/back links ── */

body.login #nav,
body.login #backtoblog { display: none; }
