/* [SUV 2026-11-15] N-042: the Keycloak pages in the look of the UUC sign-in page (phone width) and the H5 login dialog:
   grey backdrop, the cliff artwork card with the FBLIFE logo and lettering, dark translucent text panel, textured yellow
   button, muted centred links. Layered over the stock keycloak.v2 (PatternFly 5) styles. */
:root{--fb-card:min(82vw,330px);--fb-yellow:#FCCF00;--fb-text:#f5f3ee;--fb-muted:rgba(228,229,231,.78)}
html.login-pf,html.login-pf body{min-height:100%;margin:0;background:#585a5d}
body#keycloak-bg{background:#585a5d;color:var(--fb-text);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%}
.pf-v5-c-login{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:24px 16px;background:none}
.pf-v5-c-login__container{display:block;width:var(--fb-card);max-width:100%;margin:0 auto;padding:0;grid-template-columns:none}
#kc-header{display:none}

/* The card: artwork stretched to the card like the H5 dialog; the logo and lettering sit in its top part. */
.pf-v5-c-login__main{position:relative;box-sizing:border-box;width:100%;margin:0;padding:calc(var(--fb-card)/1.49) 0 16px;border:0;border-radius:0;box-shadow:none;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.35));
  background:url(../img/fb-login-scene-640-cliff-20261007.webp) 0 0/100% 100% no-repeat;
  background-image:-webkit-image-set(url(../img/fb-login-scene-640-cliff-20261007.webp) 1x,url(../img/fb-login-scene-880-cliff-20261007.webp) 3x);
  background-image:image-set(url(../img/fb-login-scene-640-cliff-20261007.webp) 1x,url(../img/fb-login-scene-880-cliff-20261007.webp) 3x);
  color:var(--fb-text)}
.pf-v5-c-login__main::before,.pf-v5-c-login__main::after{content:"";position:absolute;left:8%;background:0 0/100% 100% no-repeat;pointer-events:none}
.pf-v5-c-login__main::before{top:calc(var(--fb-card)/1.49*.2);width:22%;height:calc(var(--fb-card)*.22*133/335);background-image:url(../img/fblife-logo.png)}
.pf-v5-c-login__main::after{top:calc(var(--fb-card)/1.49*.4667);width:69%;height:calc(var(--fb-card)*.69*74/641);background-image:url(../img/fb-login-lettering-slate-20261007.png);transform:translateY(30%) rotate(-7deg);transform-origin:left bottom}

/* Title on the artwork, then one dark translucent panel for the text so it reads on the bright photo. */
.pf-v5-c-login__main-header{display:block;padding:0 9.5%;margin:0 0 10px;border:0}
#kc-page-title,.pf-v5-c-login__main-header .pf-v5-c-title{margin:0;color:#fff;font-family:inherit;font-size:18px;font-weight:600;line-height:1.4;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.pf-v5-c-login__main-body{margin:0 9.5%;padding:12px 14px;border-radius:8px;background:rgba(14,16,18,.66);color:var(--fb-text);font-size:14px;line-height:1.6}
.pf-v5-c-login__main-body p,.pf-v5-c-login__main-body .instruction{margin:0 0 8px;color:var(--fb-text);font-size:14px;line-height:1.6}
.pf-v5-c-login__main-body p:last-child{margin-bottom:0}
.pf-v5-c-login__main-body a{color:var(--fb-yellow)}
.pf-v5-c-login__main-body .pf-v5-c-alert{margin:0 0 8px;padding:0;border:0;background:none;box-shadow:none;color:var(--fb-text)}
.pf-v5-c-login__main-body .pf-v5-c-alert:last-child{margin-bottom:0}
.pf-v5-c-login__main-body .pf-v5-c-alert__icon{display:none}
.pf-v5-c-login__main-body .pf-v5-c-alert__title,.pf-v5-c-login__main-body .kc-feedback-text{color:var(--fb-text);font-size:14px;font-weight:400;line-height:1.6}
#traceId{color:var(--fb-muted);font-size:12px}
.pf-v5-c-login__main-footer{display:block;padding:0 9.5%;margin:0;border:0}
.pf-v5-c-login__main-footer:empty{display:none}

/* The UUC sign-in is the only way in: on Keycloak's own login page (shown after a timed-out sign-in) the username/password
   form and the provider list are hidden; 重新登录 below goes to the same provider link. */
[data-page-id="login-login"] #kc-form,[data-page-id="login-login"] #kc-social-providers,[data-page-id="login-login"] .pf-v5-c-login__main-footer-band,
[data-page-id="login-login"] .pf-v5-c-login__main-footer .pf-v5-c-divider,[data-page-id="login-login"] .pf-v5-c-login__main-footer [class*="divider"]{display:none!important}
[data-page-id="login-login"] .pf-v5-c-login__main-body:not(:has(.pf-v5-c-alert)){display:none}

/* Buttons: primary is the H5 dialog's textured yellow button; secondary and the forum link are muted. */
.fb-kc-exits{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin-top:14px}
.fb-kc-actions{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.pf-v5-c-button.pf-m-primary,#kc-logout,.fb-kc-relogin,.fb-kc-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:0 12px;border:0;border-radius:7px;
  background:#FCCF00 url(../img/fb-login-button-20261003-v2.webp) 0 0/100% 100% no-repeat;color:#181b1e!important;font-family:inherit;font-size:15px;font-weight:500;line-height:1.2;letter-spacing:2px;text-decoration:none!important;
  box-shadow:0 1px 0 rgba(255,255,255,.28) inset;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pf-v5-c-button.pf-m-primary:active,#kc-logout:active,.fb-kc-relogin:active,.fb-kc-button:active{filter:brightness(.95)}
.fb-kc-button.fb-kc-button-secondary{background:rgba(20,22,24,.6);border:1px solid rgba(218,222,225,.55);color:var(--fb-text)!important;letter-spacing:0;box-shadow:none}
.fb-kc-forum{display:flex;align-items:center;justify-content:center;min-height:44px;color:var(--fb-muted)!important;font-size:13px;text-decoration:none!important;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.fb-kc-hint{margin:0;padding:8px 0 0;color:var(--fb-muted);font-size:13px;line-height:1.5;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.pf-v5-c-button:focus-visible,.fb-kc-relogin:focus-visible,.fb-kc-button:focus-visible,.fb-kc-forum:focus-visible{outline:2px solid var(--fb-yellow);outline-offset:2px}
#kc-logout-confirm #kc-form-buttons{margin:12px 0 0}
#kc-logout-confirm .pf-v5-c-form__group{margin:0}

/* Form controls (rare: confirm pages) in the dialog's rounded translucent style. */
.pf-v5-c-form-control{border-radius:8px;--pf-v5-c-form-control--BackgroundColor:rgba(40,42,43,.82);--pf-v5-c-form-control--Color:#f5f5f4}
.pf-v5-c-form-control>input{font-size:16px;color:#f5f5f4}

@media(min-width:521px){:root{--fb-card:340px}}
@media(max-width:340px){:root{--fb-card:calc(90vw - 36px)}.pf-v5-c-login__main-header,.pf-v5-c-login__main-footer{padding-left:8%;padding-right:8%}.pf-v5-c-login__main-body{margin-left:8%;margin-right:8%}}
