/* TrailerBounty access: native authentication and Google controls retain their behavior. */
body.tb-access {
    --tb-access-navy: #071a38;
    --tb-access-muted: #52647d;
    --tb-access-orange: #f46a0b;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(380px, 1fr);
    grid-template-rows: 1fr auto auto;
    margin: 0;
    background: #fff;
    color: var(--tb-access-navy);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.tb-access *, .tb-access *::before, .tb-access *::after { box-sizing: border-box; }
body.tb-access > .clear { display: none; }
.tb-access a { color: #075bc4; text-underline-offset: 3px; }
.tb-access a:hover { color: #003d88; }
.tb-access a:focus-visible, .tb-access button:focus-visible, .tb-access input:focus-visible, .tb-access select:focus-visible {
    outline: 3px solid #0761dc;
    outline-offset: 4px;
    box-shadow: none;
}
.tb-access-intro {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(32px, 5vw, 72px);
    background: var(--tb-access-navy);
    color: #fff;
}
.tb-access-intro a { color: #fff; }
.tb-access-intro a:focus-visible { outline-color: #ffae64; }
.tb-access-home { align-self: flex-start; font-size: 14px; font-weight: 600; text-decoration: none; }
.tb-access-home:hover { text-decoration: underline; }
.tb-access-story { max-width: 460px; }
.tb-access-eyebrow { margin: 0 0 26px; color: #ffb06b; font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.tb-access-story h2 { margin: 0 0 25px; font-size: clamp(40px, 4.5vw, 66px); line-height: 1.06; letter-spacing: -.045em; font-weight: 750; }
.tb-access-story > p:not(.tb-access-eyebrow) { max-width: 35ch; color: #d3dfef; font-size: 17px; line-height: 1.75; }
.tb-access-accent { display: block; width: 64px; height: 4px; margin-top: 32px; background: var(--tb-access-orange); }
.tb-access-help { margin: 0; color: #d3dfef; font-size: 13px; }
.tb-access-help a { display: block; margin-top: 4px; overflow-wrap: anywhere; }
body.tb-access #login {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: min(100% - 72px, 410px);
    padding: 36px 0 26px;
    margin: 0 auto;
}
.tb-access #login .wp-login-logo { margin: 0; }
.tb-access #login h1 a {
    background-image: var(--tb-access-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 248px;
    height: 170px;
    margin: 0 auto 25px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.tb-access-heading { margin-bottom: 28px; }
.tb-access-heading h2 { margin: 0 0 9px; font-size: 32px; line-height: 1.15; font-weight: 750; letter-spacing: -.04em; }
.tb-access-heading p { margin: 0; color: var(--tb-access-muted); font-size: 15px; }
.tb-access #login form { margin: 0; padding: 0; border: 0; box-shadow: none; overflow: visible; background: transparent; }
.tb-access #login label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--tb-access-navy); }
.tb-access #login input[type="text"], .tb-access #login input[type="email"], .tb-access #login input[type="password"], .tb-access #login input[type="url"], .tb-access #login select {
    width: 100%; min-height: 50px; margin: 0 0 21px; padding: 11px 13px; border: 1px solid #8091a8;
    border-radius: 5px; background: #fff; color: var(--tb-access-navy); font: inherit; font-size: 16px;
}
.tb-access #login .wp-pwd { margin: 0; }
.tb-access #login .wp-pwd input { padding-right: 50px; }
.tb-access #login .button.wp-hide-pw { width: 48px; height: 48px; color: #075bc4; }
.tb-access #login .button.wp-hide-pw .dashicons { top: 14px; }
.tb-access #login input[type="checkbox"] { width: 20px; height: 20px; border: 1px solid #8091a8; border-radius: 3px; }
.tb-access #login input[type="checkbox"]:checked::before { margin: -1px 0 0 -2px; }
.tb-access #login .forgetmenot { float: none; margin: 0 0 20px; }
.tb-access #login .forgetmenot label { display: inline; font-weight: 400; font-size: 14px; }
.tb-access #login p.submit { margin: 0; padding: 0; }
.tb-access #login .button-primary {
    float: none; display: block; width: 100%; min-height: 48px; padding: 11px 18px;
    border: 1px solid var(--tb-access-orange); border-radius: 5px;
    background: var(--tb-access-orange); color: var(--tb-access-navy);
    font: 750 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-shadow: none; box-shadow: none; cursor: pointer;
}
.tb-access #login .button-primary:hover { border-color: #ff913c; background: #ff913c; color: var(--tb-access-navy); }
.tb-access #login .button-primary:disabled { opacity: .6; cursor: not-allowed; }
.tb-access #login .button:not(.button-primary):not(.wp-hide-pw) { min-height: 44px; font-size: 14px; }
.tb-access #login #nav, .tb-access #login #backtoblog { margin: 18px 0 0; padding: 0; font-size: 14px; }
.tb-access #login #nav a, .tb-access #login #backtoblog a { color: #075bc4; }
.tb-access #login .message, .tb-access #login .notice, .tb-access #login #login_error {
    margin: 0 0 22px; padding: 14px 16px; border: 1px solid #d0ddec; border-left: 3px solid #0761dc;
    background: #f3f7fd; color: var(--tb-access-navy); font-size: 14px; box-shadow: none;
}
.tb-access #login .notice-error, .tb-access #login #login_error { border-left-color: #b3261e; background: #fff6f5; }
.tb-access #login .message a, .tb-access #login .notice a { color: #075bc4; }
.tb-access #login .privacy-policy-page-link { margin: 22px 0 0; }
.tb-access #login .googlesitekit-sign-in-with-google__frontend-output-button { margin: 0 0 22px; max-width: 100%; }
.tb-access .language-switcher { grid-column: 2; justify-self: center; padding: 0 20px; margin: 0 0 10px; max-width: 100%; }
.tb-access .language-switcher form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tb-access .language-switcher select, .tb-access .language-switcher input { min-height: 44px; max-width: 100%; }
.tb-access-footer { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 0 auto; padding: 10px 30px 26px; max-width: 520px; }
.tb-access-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tb-access-muted); font-size: 12px; }
body.tb-access.interim-login { display: block; min-height: 0; }
.tb-access.interim-login .tb-access-intro, .tb-access.interim-login .tb-access-footer { display: none; }
.tb-access.interim-login #login { width: min(100% - 40px, 410px); padding: 16px 0; }
.tb-access.interim-login #login h1 a { width: 190px; height: 126px; margin-bottom: 14px; }
@media (max-width: 800px) {
    body.tb-access { display: flex; flex-direction: column; }
    .tb-access-intro { min-height: 0; padding: 22px 26px; gap: 0; }
    .tb-access-story, .tb-access-help { display: none; }
    body.tb-access #login { width: min(100% - 48px, 410px); padding: 22px 0 26px; }
    .tb-access #login h1 a { width: 214px; height: 142px; margin-bottom: 18px; }
    .tb-access-heading h2 { font-size: 30px; }
    .tb-access-footer { margin-top: auto; padding: 8px 22px 22px; }
    .tb-access .language-switcher { margin: 0 auto 10px; }
}
@media (max-width: 360px) {
    body.tb-access #login { width: calc(100% - 36px); }
    .tb-access-intro { padding-inline: 18px; }
    .tb-access-footer { gap: 0 14px; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .tb-access *, .tb-access *::before, .tb-access *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
