:root {
    --tfp-login-blue: #0b3763;
    --tfp-login-deep: #082d52;
    --tfp-login-gold: #dba634;
    --tfp-login-ink: #172638;
    --tfp-login-muted: #617386;
    --tfp-login-line: #d8e2eb;
}

body.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: var(--tfp-login-blue);
    color: var(--tfp-login-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
}

#login {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: min(430px, calc(100vw - 36px));
    margin: 40px auto;
    padding: 34px 38px 28px;
    border: 1px solid rgba(255,255,255,.35);
    border-bottom: 5px solid var(--tfp-login-gold);
    border-radius: 18px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 30px 75px rgba(1, 20, 39, .34);
}

.login h1 { margin: 0 0 20px; }
.login h1 a {
    width: 100%;
    height: 76px;
    margin: 0;
    background-position: center;
    background-size: contain;
}

.tfp-login-intro { margin: 0 0 24px; text-align: center; }
.tfp-login-intro span {
    color: #1673bb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.tfp-login-intro h1 { margin: 6px 0 8px; color: var(--tfp-login-blue); font-size: 30px; line-height: 1.05; }
.tfp-login-intro p { margin: 0; color: var(--tfp-login-muted); font-size: 14px; line-height: 1.5; }

.login form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.login label { color: var(--tfp-login-ink); font-size: 13px; font-weight: 700; }
.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    min-height: 48px;
    margin: 7px 0 18px;
    padding: 8px 13px;
    border: 1px solid #bdcddb;
    border-radius: 9px;
    color: var(--tfp-login-ink);
    background: #f8fbfd;
    box-shadow: none;
    font-size: 16px;
}
.login form .input:focus,
.login input:focus {
    border-color: #1673bb;
    box-shadow: 0 0 0 3px rgba(22,115,187,.14);
}
.login .button.wp-hide-pw { color: var(--tfp-login-blue); }
.login .forgetmenot { margin-top: 4px; }
.login .forgetmenot label { color: var(--tfp-login-muted); font-weight: 500; }
.login .submit .button-primary {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--tfp-login-gold);
    border-radius: 9px;
    color: var(--tfp-login-ink);
    background: var(--tfp-login-gold);
    box-shadow: none;
    font-weight: 800;
    text-shadow: none;
}
.login .submit .button-primary:hover,
.login .submit .button-primary:focus {
    border-color: #c28e1f;
    color: #0c2238;
    background: #e3b54e;
}

.login #nav,
.login #backtoblog { margin: 18px 0 0; padding: 0; text-align: center; }
.login #backtoblog { margin-top: 9px; }
.login #nav a,
.login #backtoblog a { color: var(--tfp-login-blue); font-weight: 650; }
.login #nav a:hover,
.login #backtoblog a:hover { color: #1673bb; }
.login .privacy-policy-page-link { margin: 20px 0 0; }
.login .privacy-policy-page-link a { color: #dceaf5; }
.login .message,
.login .notice,
.login #login_error {
    margin: 0 0 20px;
    border-left-color: var(--tfp-login-gold);
    border-radius: 7px;
    box-shadow: none;
}
.login .language-switcher { position: relative; z-index: 1; }
.tfp-login-footer {
    position: fixed;
    right: 0;
    bottom: 18px;
    left: 0;
    z-index: 1;
    display: grid;
    gap: 3px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 11px;
    text-align: center;
}
.tfp-login-footer strong {
    color: #fff;
    font-size: 12px;
    letter-spacing: .04em;
}
.tfp-login-footer span {
    font-size: 10px;
}

@media (max-width: 520px) {
    #login { margin: 18px auto 52px; padding: 28px 24px 24px; border-radius: 14px; }
    .login h1 a { height: 64px; }
    .tfp-login-intro h1 { font-size: 26px; }
}
