.bbcx-login-page { margin:0; min-height:100vh; background:var(--wd-main-bgcolor,#fff); }
.bbcx-login-page #bbcx-login-main { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:100svh; padding:24px 16px; }
.bbcx-login { box-sizing:border-box; width:min(100%,460px); padding:clamp(20px,5vw,36px); background:var(--wd-main-bgcolor,#fff); border:1px solid var(--brdcolor-gray-300,#ddd); border-radius:12px; color:var(--color-gray-800,#242424); text-align:start; }
.bbcx-login h1 { font-size:clamp(20px,4vw,25px); line-height:1.8; margin:0 0 12px; }
.bbcx-login p { line-height:1.9; margin:12px 0; font-size:14px; }
.bbcx-login-brand { text-align:center; margin-bottom:24px; }
.bbcx-login-brand img { display:block; margin:auto; width:auto; max-width:180px; height:auto; max-height:80px; object-fit:contain; }
.bbcx-login-form { display:grid; gap:12px; }
.bbcx-login-form input:not([type=checkbox]):not([type=hidden]) { box-sizing:border-box; width:100%; min-height:48px; border:1px solid var(--brdcolor-gray-500,#777); border-radius:8px; padding:10px 12px; background:var(--wd-main-bgcolor,#fff); color:var(--color-gray-800,#242424); font-size:13px; }
.bbcx-login-form button { min-height:48px; border-radius:8px; background:var(--wd-primary-color); color:#fff; white-space:normal; }
.bbcx-login-form button:hover { background:var(--wd-primary-color); filter:brightness(.9); color:#fff;}
.bbcx-login :focus-visible,.bbcx-staff-entry:focus-visible { outline:3px solid var(--wd-primary-color); outline-offset:4px; }
.bbcx-login [role=alert] { color:#8d1717; border-inline-start:3px solid; padding-inline-start:12px; }
.bbcx-login a,.bbcx-staff-entry { text-decoration:underline; text-underline-offset:3px; }
.bbcx-login .bbcx-login-legal { font-size:12px; line-height:2; margin-top:16px; }
.bbcx-staff-entry { margin-top:20px; font-size:13px; min-height:44px; display:flex; align-items:center; }
.bbcx-login button:disabled { opacity:.6; cursor:wait; }
.bbcx-login button[value=change],.bbcx-login button[value=resend] { background:transparent; color:var(--wd-primary-color); border:1px solid currentColor; }
.bbcx-login-form[aria-busy=true] button{opacity:.7;cursor:progress}

/* Persian placeholder stays right aligned; native auto direction follows typed input. */
.bbcx-login h1{text-align:center}
.bbcx-login #bbcx_mobile{text-align:start}
.bbcx-login #bbcx_mobile:placeholder-shown{direction:rtl;text-align:right}
.bbcx-login #bbcx_mobile::placeholder{direction:rtl;text-align:right}

.bbcx-native-logo img{width:var(--bbcx-logo-desktop,90px);height:auto}@media(max-width:1024px){.bbcx-native-logo img{width:var(--bbcx-logo-mobile,70px)}}
