/* Authentication UI: scoped, theme-aware and complete without the member theme. */
body.login {
    margin: 0;
    background: var(--gr-bg, #f7f8fa);
    color: var(--gr-text, #232b28);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--gr-text-body, .9375rem);
    line-height: var(--gr-leading-body, 1.6);
}
body.login #login { width: 100%; max-width: none; margin: 0; padding: 0; }
body.login .wp-login-logo { display: none; }
body.login .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.login .gr-auth-shell, body.login .gr-auth-shell * { box-sizing: border-box; }
body.login .gr-auth-shell [hidden] { display: none !important; }
body.login .gr-auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 40px 24px;
    overflow-wrap: anywhere;
}
body.login .gr-auth-brand { display: flex; justify-content: center; align-items: center; min-height: 36px; margin-bottom: 28px; color: var(--gr-text, #232b28); font-size: var(--gr-text-section, 1.25rem); font-weight: 700; letter-spacing: -.03em; }
body.login .gr-auth-brand img { display: block; width: 132px; max-width: 100%; height: auto; filter: none; }
body.login .gr-auth-form-column { width: 100%; max-width: var(--gr-auth-layout-width, 440px); min-width: 0; }
body.login .gr-auth-card { padding: 32px; width: 100%; min-width: 0; background: var(--gr-surface, #fff); border: 1px solid var(--gr-border, #e5e7eb); border-radius: var(--gr-radius, 12px); box-shadow: var(--gr-auth-card-shadow, 0 2px 6px #17202604); }
body.login .gr-auth-heading { margin-bottom: 28px; text-align: center; }
body.login .gr-auth-heading h1 { margin: 0; padding: 0; font-size: var(--gr-text-hero, 1.5rem); font-weight: 650; line-height: var(--gr-leading-heading, 1.3); letter-spacing: -.03em; text-align: center; }
body.login .gr-auth-heading p { margin: 10px 0 0; color: var(--gr-muted, #63706a); font-size: var(--gr-text-body, .9375rem); line-height: var(--gr-leading-body, 1.6); }
body.login .gr-auth-shell .gr-auth-form { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; overflow: visible; }
body.login .gr-auth-field { margin-bottom: 20px; }
body.login .gr-auth-shell .gr-auth-field > label { display: block; margin: 0 0 8px; padding: 0; color: var(--gr-text, #232b28); font-size: var(--gr-text-meta, .8125rem); font-weight: 500; line-height: var(--gr-leading-control, 1.4); }
body.login .gr-auth-shell .gr-auth-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body.login .gr-auth-shell .gr-auth-form select,
body.login .gr-auth-shell .gr-auth-form textarea {
    width: 100%; max-width: 100%; min-height: 48px; margin: 0; padding: 12px 14px;
    border: 1px solid var(--gr-border, #dfe3e6); border-radius: var(--gr-control-radius, 8px);
    background: var(--gr-surface, #fff); color: var(--gr-text, #232b28);
    font-family: inherit; font-size: var(--gr-text-reading, 1rem); line-height: var(--gr-leading-control, 1.4);
    box-shadow: none; transition: border-color 140ms ease;
}
body.login .gr-auth-shell input::placeholder { color: var(--gr-muted, #63706a); opacity: .75; }
body.login .gr-auth-password { position: relative; }
body.login .gr-auth-shell .gr-auth-password input:not([type="hidden"]) { padding-right: 52px; }
body.login .gr-auth-toggle { display: grid; place-items: center; position: absolute; right: 2px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--gr-control-radius, 8px); background: transparent; color: var(--gr-muted, #63706a); cursor: pointer; }
body.login .gr-auth-toggle svg { width: 20px; height: 20px; }
body.login .gr-auth-toggle:hover { color: var(--gr-text, #232b28); background: var(--gr-inset, #f1f3f5); }
body.login .gr-auth-shell .invalid-feedback { display: none; margin-top: 6px; font-size: var(--gr-text-meta, .8125rem); color: #a52e38; }
body.login .gr-auth-shell .is-invalid ~ .invalid-feedback { display: block; }
body.login .gr-auth-options { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 2px 0 24px; }
body.login .gr-auth-shell .gr-auth-remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--gr-muted, #63706a); cursor: pointer; font-size: var(--gr-text-meta, .8125rem); line-height: var(--gr-leading-control, 1.4); }
body.login .gr-auth-remember input[type="checkbox"] { appearance: auto; margin: 0; width: 16px; height: 16px; border-radius: 4px; accent-color: var(--gr-primary-background, #087f6b); flex: 0 0 auto; }
body.login .gr-auth-shell a { color: var(--gr-accent-text, #08745b); text-decoration: none; text-underline-offset: 3px; font-size: var(--gr-text-meta, .8125rem); }
body.login .gr-auth-shell a:hover { text-decoration: underline; }
body.login .gr-auth-submit { margin-top: 6px; }
body.login .gr-auth-shell .gr-auth-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; border: 1px solid var(--gr-primary-background, #087f6b); border-radius: var(--gr-control-radius, 8px); background: var(--gr-primary-background, #087f6b); color: var(--gr-primary-ink, #fff); font-family: inherit; font-size: var(--gr-text-control, .875rem); font-weight: 600; line-height: var(--gr-leading-control, 1.4); white-space: normal; text-align: center; text-shadow: none; cursor: pointer; box-shadow: none; transform: none; transition: background-color 140ms ease, border-color 140ms ease; }
body.login .gr-auth-button svg { width: 18px; height: 18px; }
body.login .gr-auth-shell .gr-auth-button:hover { background: var(--gr-primary-hover, #066b5a); border-color: var(--gr-primary-hover, #066b5a); color: var(--gr-primary-ink, #fff); box-shadow: none; transform: none; }
body.login .gr-auth-shell .gr-auth-button:active { background: var(--gr-primary-active, #055848); border-color: var(--gr-primary-active, #055848); color: var(--gr-primary-ink, #fff); }
body.login .gr-auth-shell .gr-auth-button:disabled { opacity: .6; cursor: default; }
body.login .gr-auth-shell :is(input, select, textarea, button, a):focus-visible { outline: 2px solid var(--gr-focus, #087f6b); outline-offset: 3px; box-shadow: none; }
body.login .gr-auth-shell .gr-auth-form input:focus { border-color: var(--gr-primary-background, #087f6b); box-shadow: none; }
body.login .gr-auth-back { margin: 24px 0 0; text-align: center; }
body.login .gr-auth-back a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; }
body.login .gr-auth-footer { display: flex; justify-content: center; margin-top: 22px; color: var(--gr-muted, #63706a); text-align: center; }
body.login .gr-auth-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
body.login .gr-auth-shell .gr-auth-footer a { color: var(--gr-muted, #63706a); font-size: var(--gr-text-meta, .8125rem); }
body.login .gr-auth-shell .wpk-login > .wpk-hint { display: none; }
body.login .gr-auth-shell .wpk-login-button { border-radius: var(--gr-control-radius, 8px) !important; font-size: var(--gr-text-control, .875rem); }
body.login .gr-auth-notice { margin-bottom: 22px; padding: 12px 14px; border: 1px solid var(--gr-border, #e5e7eb); border-radius: var(--gr-control-radius, 8px); background: var(--gr-inset, #f1f3f5); color: var(--gr-text, #232b28); font-size: var(--gr-text-meta, .8125rem); line-height: var(--gr-leading-body, 1.6); }
body.login .gr-auth-notice-success { border-color: #c6e6da; background: #edf8f3; color: #16624a; }
body.login .gr-auth-notice-error { border-color: #efc9cc; background: #fff3f3; color: #a52e38; }
/* Keep native and third-party login states usable outside the custom forms. */
body.login #login > form { width: min(440px, calc(100% - 32px)); margin: 48px auto 24px; padding: 28px; border: 1px solid var(--gr-border, #e5e7eb); border-radius: var(--gr-radius, 12px); background: var(--gr-surface, #fff); }
body.login #login > :is(.message, #login_error, .notice) { max-width: 440px; margin: 24px auto; padding: 14px; font-size: var(--gr-text-body, .9375rem); }
@media (max-width: 575.98px) {
    body.login .gr-auth-shell { padding: 32px 20px; }
    body.login .gr-auth-card { padding: 28px 24px; }
    body.login .gr-auth-heading { margin-bottom: 24px; }
}
@media (max-width: 359.98px) {
    body.login .gr-auth-shell { padding-inline: 16px; }
    body.login .gr-auth-card { padding-inline: 20px; }
}
@media (pointer: coarse) {
    body.login .gr-auth-shell .gr-auth-remember,
    body.login .gr-auth-options > a,
    body.login .gr-auth-back a,
    body.login .gr-auth-shell .gr-auth-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    body.login .gr-auth-shell * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
