/* CTT identity; credential validation and accessible forms remain Keycloak-owned. */
:root{--ctt-red:#df0024;--ctt-ink:#252628;--ctt-muted:#6d7079;--ctt-line:#e3e4e9}
*{box-sizing:border-box}
.login-pf{background:#f7f7fa}
.login-pf body{margin:0;min-height:100vh;background:linear-gradient(90deg,#df0024 0%,#d00025 40%,#f7f7fa 40%,#f7f7fa 100%)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ctt-ink);font-size:15px}
.login-pf-page{margin-left:40%;padding:80px 36px 48px;min-height:100vh;display:flex;flex-direction:column;justify-content:center}
#kc-header{position:fixed;top:48px;left:56px;width:calc(40vw - 112px);margin:0;padding:0;color:white;text-align:left;z-index:2}
#kc-header-wrapper{color:#fff;background:url('../ctt-logo-white.svg') no-repeat left top;background-size:84px auto;padding:68px 0 0;text-transform:none;font-size:13px;font-weight:650;letter-spacing:.4px;white-space:normal;line-height:1.5}
.ctt-story{position:fixed;left:56px;top:200px;bottom:48px;width:calc(40vw - 112px);display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:left;z-index:1;pointer-events:none}
.ctt-story-copy{padding-bottom:80px;max-width:440px}
.ctt-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:2px;color:#ffd2da;margin-bottom:22px}
.ctt-story h2{font-size:clamp(32px,3.2vw,50px);font-weight:750;line-height:1.12;letter-spacing:-1.7px;margin:0 0 24px;white-space:pre-line;color:#fff}
#kc-content .ctt-story p{font-size:16px;line-height:1.75;color:#ffe4e9;margin:0;max-width:360px}
.ctt-stages{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px}
.ctt-stages span{padding:7px 11px;border:1px solid #ffffff45;border-radius:20px;color:#fff;font-size:11px;font-weight:550;background:#ffffff0a}
.ctt-story-footer{position:absolute;bottom:0;font-size:12px;color:#ffe4e9;display:flex;align-items:center;gap:9px}
.ctt-status-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#ffc4d0}
.login-pf-page .card-pf{position:relative;width:100%;max-width:480px;margin:0 auto;padding:42px 40px 34px;border:1px solid var(--ctt-line);border-radius:18px;border-top:1px solid var(--ctt-line);box-shadow:0 16px 60px #1b153509;background:#fff;z-index:2}
.login-pf-header{margin:0 0 12px!important}
#kc-page-title{margin:0;text-align:left;font-size:28px;font-weight:750;line-height:1.2;letter-spacing:-.8px;color:var(--ctt-ink)}
.ctt-welcome{color:var(--ctt-muted);font-size:14px;line-height:1.65;margin:0 0 28px;text-align:left}
#kc-content-wrapper{margin:0}
#kc-form .form-group{margin-bottom:20px}
#kc-form label,.control-label{font-size:13px;font-weight:600;color:#373941;margin-bottom:8px}
.pf-c-form-control,.form-control{border:1px solid #d9dbe3;border-radius:8px;min-height:48px;padding:12px 14px;font-size:15px;background:#fff;box-shadow:none;color:#252628}
.pf-c-form-control:focus,.form-control:focus{border-color:var(--ctt-red);outline:2px solid #df002420;outline-offset:1px;box-shadow:none}
.pf-c-input-group{display:flex;align-items:stretch}
.pf-c-input-group .pf-c-form-control{min-width:0;border-top-right-radius:0;border-bottom-right-radius:0;flex:1}
.pf-c-input-group .pf-c-button{border:1px solid #d9dbe3;border-left:0;border-radius:0 8px 8px 0;background:#fff;color:#747780;padding:0 14px;box-shadow:none}
.pf-c-input-group .pf-c-button:after{border:0}
#kc-form-options{font-size:13px;color:var(--ctt-muted)}
#kc-form-buttons{margin-top:26px;margin-bottom:0!important}
.pf-c-button.pf-m-primary,.btn-primary,#kc-login{background:var(--ctt-red)!important;border:1px solid var(--ctt-red)!important;border-radius:8px;min-height:48px;font-size:14px;font-weight:650;box-shadow:0 4px 10px #df002416;transition:background .15s}
.pf-c-button.pf-m-primary:hover,.btn-primary:hover,#kc-login:hover{background:#c60021!important}
a{color:#c90023}a:hover{color:#a9001d}
#kc-locale{position:absolute;right:40px;top:-42px;z-index:3}
#kc-locale-dropdown a{color:var(--ctt-muted);font-size:12px}
#kc-locale-dropdown ul{border:1px solid var(--ctt-line);border-radius:8px;box-shadow:0 6px 20px #0000000d;padding:5px 0;min-width:140px}
#kc-locale-dropdown ul a{padding:8px 14px}
#kc-locale-dropdown ul a:hover{background:#fff1f4;color:#c90023}
.ctt-social-preview{margin-top:28px}
.ctt-divider{display:flex;align-items:center;gap:14px;color:#93959d;font-size:11px;white-space:nowrap;margin-bottom:18px}
.ctt-divider:before,.ctt-divider:after{content:"";height:1px;flex:1;background:var(--ctt-line)}
.ctt-social-buttons{display:grid;gap:10px}
.ctt-social-button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px 13px;border:1px solid #e3e4e9;border-radius:8px;background:#fafafb;color:#777a83;font:500 13px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;cursor:not-allowed;opacity:1}
.ctt-social-button svg{width:18px;height:18px;flex-shrink:0;opacity:.65}
.ctt-coming{margin-left:auto;border:1px solid #e4e5eb;background:#f0f0f4;color:#7d7f89;border-radius:4px;padding:3px 7px;font-size:10px;font-weight:550;white-space:nowrap}
.ctt-social-note{font-size:11px;color:#848791;line-height:1.6;margin:14px 2px 0;text-align:center}
#kc-social-providers a{border-radius:8px}
#kc-info-wrapper{background:#f9f9fb;border-radius:0 0 16px 16px;margin-top:24px;padding:16px}
.alert{border-radius:8px;margin:18px 0;line-height:1.5}
#kc-content .pf-c-alert{margin:18px 0}
@media(min-width:901px) and (max-height:760px){.login-pf-page{padding-top:64px;padding-bottom:24px;justify-content:flex-start}.login-pf-page .card-pf{padding:28px 32px}.ctt-story{top:170px}.ctt-story-copy{padding-bottom:40px}.ctt-story h2{font-size:36px}}
@media(max-width:900px){
 .login-pf body{background:#f7f7fa!important}.login-pf-page{margin-left:0;padding:0 20px 30px;justify-content:flex-start;min-height:100vh}
 #kc-header{position:relative;top:auto;left:auto;width:auto;margin:0 -20px 64px;padding:24px 28px;background:#df0024;min-height:128px}
 #kc-header-wrapper{padding:57px 0 0;background-size:68px auto;font-size:12px}
 .ctt-story{display:none}.login-pf-page .card-pf{padding:30px 26px;max-width:480px}.ctt-welcome{margin-bottom:24px}
 #kc-page-title{font-size:25px}#kc-locale{right:10px;top:-36px}
}
@media(max-width:380px){.login-pf-page .card-pf{padding:26px 20px}.login-pf-page{padding-left:14px;padding-right:14px}#kc-header{margin-left:-14px;margin-right:-14px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* PatternFly supplies an invalid-field SVG; our background shorthand otherwise
   resets its sizing/repeat defaults. Use a clean border and inline message. */
#kc-content input.pf-c-form-control[aria-invalid="true"],
#kc-content input.form-control[aria-invalid="true"]{
 background-image:none!important;background-color:#fff;border-color:#c90023!important;box-shadow:none;
}
#kc-content input[aria-invalid="true"]:focus{outline:2px solid #df002420;outline-offset:1px}
#kc-content .pf-c-input-group:has(input[aria-invalid="true"])>button{border-color:#c90023}
#input-error{display:block;font-size:12px;line-height:1.6;color:#b00020;margin-top:8px}
