/*
 * Sign-in pages (2026-10 design): login.xhtml, login_reset.xhtml, resetpassword.xhtml and the error pages in main/.
 * Prefix: lg-   Stand-alone (no bootstrap / INSPINIA). Needs font-awesome/css/font-awesome.css.
 * Style guide: project doc claude/ui-style-guide.md. Mockups: temp/login_mockups_2026-10-20/.
 */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800|Cairo:400,600,700,800&display=swap');
.lg *{box-sizing:border-box}
html,body.lg{margin:0;padding:0}
body.lg{background:#f3f3f4;font-family:'Open Sans','Segoe UI',Arial,sans-serif;font-size:13px;color:#1f2a37;-webkit-font-smoothing:antialiased}
body.lg[dir=rtl],body.lg[dir=rtl] input,body.lg[dir=rtl] button{font-family:'Cairo',Tahoma,'Segoe UI',Arial,sans-serif}
.lg a{text-decoration:none;color:inherit}
.lg .fa{line-height:inherit}
.lg-wrap{display:grid;grid-template-columns:44% 56%;min-height:100vh}
/* brand side */
.lg-brand{background:linear-gradient(160deg,#2f4050 0%,#1f2d3a 60%,#16222d 100%);color:#fff;padding:44px 56px 28px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.lg-brand:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(26,179,148,.22),rgba(26,179,148,0) 70%);right:-180px;top:-160px;pointer-events:none}
[dir=rtl] .lg-brand:before{right:auto;left:-180px}
.lg-wm{display:flex;align-items:center;gap:12px;position:relative}
.lg-logo{width:48px;height:48px;border-radius:50%;background:#1ab394;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px;flex:0 0 48px}
.lg-wm b{font-size:20px;letter-spacing:.2px;display:block}.lg-wm small{display:block;color:#a7b1c2;font-size:12px}
.lg-brand h1{font-size:34px;line-height:1.25;margin:64px 0 12px;font-weight:700;position:relative;max-width:520px}
.lg-brand h1 em{font-style:normal;color:#1ab394}
.lg-lead{color:#c3cbd6;font-size:14.5px;line-height:1.6;max-width:500px;margin:0 0 30px;position:relative}
.lg-mods{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:540px;position:relative}
.lg-mod{display:flex;gap:12px;align-items:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);border-radius:12px;padding:12px 14px}
.lg-mod i.fa{width:38px;height:38px;border-radius:10px;background:rgba(26,179,148,.16);color:#3fd0b1;display:flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 38px}
.lg-mod b{display:block;font-size:13px}.lg-mod small{color:#a7b1c2;font-size:11.5px}
.lg-trust{margin-top:auto;padding-top:18px;display:flex;gap:22px;flex-wrap:wrap;color:#a7b1c2;font-size:12px;border-top:1px solid rgba(255,255,255,.1);position:relative}
.lg-brand .lg-trust{margin-top:40px}
.lg-brand .lg-spacer{flex:1}
.lg-trust span{display:inline-flex;gap:7px;align-items:center}.lg-trust .fa{color:#1ab394}
/* form side */
.lg-side{display:flex;flex-direction:column;padding:26px 48px;min-width:0}
.lg-top{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.lg-langs{display:flex;border:1px solid #d0d5dd;border-radius:8px;overflow:hidden;background:#fff}
.lg-langs a{padding:6px 12px;font-weight:600;font-size:12.5px;color:#344054}
.lg-langs a.on{background:#e8f0fd;color:#1c6ed4}
.lg-center{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 0}
.lg-card{width:460px;max-width:100%;background:#fff;border:1px solid #e6eaf0;border-radius:16px;box-shadow:0 12px 32px rgba(16,24,40,.08);padding:30px 32px 24px}
.lg-card.w500{width:500px}
.lg-hd{display:flex;gap:14px;align-items:center;margin-bottom:22px}
.lg-hd h2{margin:0;font-size:22px;font-weight:700}.lg-hd small{color:#7b8494;font-size:13px;display:block;margin-top:2px;line-height:1.45}
.lg-ico{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:23px;flex:0 0 52px;background:#e7f7ee;color:#1a9a5b}
.lg-ico.am{background:#fdf4e3;color:#e08e0b}.lg-ico.rd{background:#fdecec;color:#d93636}.lg-ico.bl{background:#e8f0fd;color:#1c6ed4}
.lg-fl{margin-bottom:16px}
.lg-fl>label,.lg-lbl{display:flex;justify-content:flex-start;gap:4px;align-items:center;font-weight:600;font-size:13px;margin-bottom:7px;color:#344054}
.lg-fl>label .lg-link{margin-inline-start:auto}
.lg-fl>label a,.lg-link{color:#1c6ed4;font-weight:600;font-size:12.5px;cursor:pointer;background:none;border:0;padding:0;font-family:inherit}
.lg-req{color:#d92d20}
.lg-in{display:flex;align-items:center;border:1px solid #d0d5dd;border-radius:8px;background:#fff;height:46px;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:border-color .15s,box-shadow .15s}
.lg-in>.fa{width:40px;flex:0 0 40px;text-align:center;color:#667085;font-size:15px}
.lg-in input{flex:1;min-width:0;border:0;outline:0;background:transparent;height:100%;font-size:14px;color:#101828;padding:0 10px 0 0;font-family:inherit}
[dir=rtl] .lg-in input{padding:0 0 0 10px}
.lg-in input::placeholder{color:#98a2b3}
.lg-in:focus-within{border-color:#84caff;box-shadow:0 0 0 4px #d1e9ff}
.lg-in.err{border-color:#fda29b;box-shadow:0 0 0 4px #fee4e2}
.lg-in.ro{background:#f9fafb}
.lg-eye{height:100%;padding:0 14px;color:#667085;border:0;border-left:1px solid #eaecf0;background:transparent;cursor:pointer;font-size:15px}
[dir=rtl] .lg-eye{border-left:0;border-right:1px solid #eaecf0}
.lg-ferr,.lg-fl .error{color:#d92d20;font-size:12px;margin-top:5px;display:flex;gap:6px;align-items:center}
.lg-caps{color:#b54708;font-size:12px;margin-top:6px;display:none;gap:6px;align-items:center}
.lg-caps.on{display:flex}
.lg-row{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px;font-size:12.5px;color:#344054}
.lg-check{display:inline-flex;gap:9px;align-items:center;cursor:pointer}
.lg-check input{width:17px;height:17px;accent-color:#1570ef;margin:0}
.lg-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 15px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;font-weight:600;font-size:13px;white-space:nowrap;box-shadow:0 1px 2px rgba(16,24,40,.05);line-height:1.4;cursor:pointer;font-family:inherit}
.lg-btn.g{background:#1ab394;border-color:#1ab394;color:#fff}.lg-btn.g:hover{background:#18a689}
.lg-btn.b{background:#1c6ed4;border-color:#1c6ed4;color:#fff}
.lg-btn.d{background:#101828;border-color:#101828;color:#fff}
.lg-btn.big{width:100%;height:46px;font-size:14.5px;border-radius:10px}
.lg-btn.sm{padding:5px 11px;font-size:12px}
.lg-btn[disabled],.lg-btn.dis{opacity:.7;cursor:default}
.lg-btn.lock{background:#98a2b3;border-color:#98a2b3;color:#fff}
.lg-secure{display:flex;gap:6px;align-items:center;justify-content:center;color:#667085;font-size:11.5px;margin-top:14px}
.lg-secure .fa{color:#12b76a}
.lg-help{display:flex;gap:10px;align-items:center;background:#f8fafc;border:1px solid #eef1f5;border-radius:10px;padding:10px 12px;font-size:12.5px;color:#475467;margin-top:18px}
.lg-help .fa{color:#1c6ed4;font-size:16px}
.lg-foot{display:flex;justify-content:space-between;color:#98a2b3;font-size:12px;padding-top:12px}
/* banners */
.lg-ban{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:10px;margin-bottom:16px;font-size:12.5px;line-height:1.45}
.lg-ban .fa{font-size:18px;margin-top:1px}
.lg-ban b{display:block;font-size:13px}
.lg-ban.ok{background:#ecfdf3;border:1px solid #abefc6;color:#067647}
.lg-ban.no{background:#fffaeb;border:1px solid #fedf89;color:#b54708}
.lg-ban.in{background:#eff8ff;border:1px solid #b2ddff;color:#175cd3}
.lg-ban.er{background:#fef3f2;border:1px solid #fecdca;color:#b42318}
/* password rules / strength */
.lg-str{display:flex;gap:5px;margin:8px 0 4px}.lg-str i{flex:1;height:6px;border-radius:4px;background:#eaecf0}
.lg-str.s1 i:nth-child(-n+1){background:#f04438}.lg-str.s2 i:nth-child(-n+2){background:#f79009}
.lg-str.s3 i:nth-child(-n+3){background:#f79009}.lg-str.s4 i{background:#12b76a}
.lg-strl{display:flex;justify-content:space-between;font-size:11.5px;color:#667085}
.lg-h6{margin:0 0 6px;font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;color:#7b8494;font-weight:700}
ul.lg-rules{list-style:none;margin:0 0 16px;padding:0}
ul.lg-rules li{display:flex;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #f2f4f7;font-size:12.5px}
ul.lg-rules li:last-child{border:0}
ul.lg-rules li i{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;flex:0 0 20px;background:#f2f4f7;color:#98a2b3}
ul.lg-rules li.ok i{background:#ecfdf3;color:#067647}
ul.lg-rules li.bad i{background:#fef3f2;color:#b42318}
ul.lg-rules li.opt{color:#667085}
.lg-user{display:flex;gap:12px;align-items:center;background:#f8fafc;border:1px solid #eef1f5;border-radius:12px;padding:10px 12px;margin-bottom:18px}
.lg-av{width:40px;height:40px;border-radius:50%;background:#e8f0fd;color:#1c6ed4;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex:0 0 40px}
.lg-user b{display:block}.lg-user small{color:#7b8494;font-size:12px}
.lg-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;margin-inline-start:auto}
.lg-pill.am{background:#fdf4e3;color:#b7791f}.lg-pill.bl{background:#e8f0fd;color:#1c6ed4}
.lg-steps{display:flex;margin:0 0 20px}
.lg-steps div{flex:1;display:flex;gap:8px;align-items:center;font-size:12px;font-weight:600;color:#98a2b3}
.lg-steps div i{width:24px;height:24px;border-radius:50%;border:2px solid #d0d5dd;display:flex;align-items:center;justify-content:center;font-size:11px;font-style:normal;flex:0 0 24px}
.lg-steps div.dn{color:#067647}.lg-steps div.dn i{background:#12b76a;border-color:#12b76a;color:#fff}
.lg-steps div.cu{color:#175cd3}.lg-steps div.cu i{border-color:#1570ef;color:#1570ef;box-shadow:0 0 0 3px #d1e9ff}
.lg-steps div:after{content:"";flex:1;height:2px;background:#eaecf0;margin:0 8px}
.lg-steps div:last-child:after{display:none}
.lg-sum{border:1px solid #eaecf0;border-radius:10px;overflow:hidden;margin-bottom:14px}
.lg-sum div{display:flex;justify-content:space-between;padding:9px 14px;font-size:13px;border-bottom:1px solid #f2f4f7}
.lg-sum div:last-child{border-bottom:0}.lg-sum span{color:#667085}
.lg-red{color:#d93636}
.lg-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12.5px;color:#667085;gap:10px}
/* dialog */
.lg-dim{position:fixed;inset:0;background:rgba(16,24,40,.5);display:none;align-items:center;justify-content:center;z-index:1000;padding:16px}
.lg-dim.on{display:flex}
.lg-dlg{background:#fff;border-radius:14px;box-shadow:0 20px 40px rgba(16,24,40,.25);width:470px;max-width:100%;overflow:hidden}
.lg-dlg .dh{display:flex;gap:12px;align-items:center;padding:18px 20px;border-bottom:1px solid #eaecf0}
.lg-dlg .dh .lg-ico{width:44px;height:44px;flex:0 0 44px;font-size:19px}
.lg-dlg .dh h4{margin:0;font-size:16px}.lg-dlg .dh small{color:#667085;display:block}
.lg-dlg .dh .x{margin-inline-start:auto;color:#98a2b3;background:none;border:0;font-size:16px;cursor:pointer}
.lg-dlg .db{padding:18px 20px 6px}
.lg-dlg .df{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 20px;border-top:1px solid #eaecf0;background:#fcfcfd;font-size:11.5px;color:#667085}
.lg-dlg .lg-in{height:40px}
.lg-wh{display:flex;margin:4px 0 16px}
.lg-wh div{flex:1;text-align:center;font-size:11.5px;color:#475467;position:relative}
.lg-wh div i{width:30px;height:30px;border-radius:50%;background:#eff8ff;color:#1570ef;display:flex;align-items:center;justify-content:center;margin:0 auto 6px;font-size:13px;position:relative;z-index:1}
.lg-wh div:before{content:"";position:absolute;top:15px;left:-50%;right:50%;height:2px;background:#d1e9ff}
.lg-wh div:first-child:before{display:none}
/* error / status pages */
.lg-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.lg-sp{background:#fff;border:1px solid #e6eaf0;border-radius:16px;box-shadow:0 12px 28px rgba(16,24,40,.07);width:520px;max-width:100%;padding:28px 30px 22px;text-align:center}
.lg-sp .lg-wm{justify-content:center;margin-bottom:18px;color:#344054}
.lg-sp .lg-wm .lg-logo{width:30px;height:30px;flex:0 0 30px;font-size:11px}
.lg-sp .lg-wm b{font-size:14px}
.lg-big{width:64px;height:64px;border-radius:16px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:28px}
.lg-sp h3{margin:0 0 6px;font-size:20px}.lg-sp p{color:#667085;margin:0 0 16px;line-height:1.55}
.lg-ref{background:#f5f9ff;border:1px solid #dbe7f8;border-radius:10px;padding:10px 14px;text-align:start;margin-bottom:16px}
.lg-ref dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0;font-size:12.5px}
.lg-ref dt{color:#7b8494}.lg-ref dd{margin:0;font-weight:600;word-break:break-all}
.lg-bt{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.lg-ft{color:#98a2b3;font-size:11.5px;margin-top:14px}
.lg-spin{display:inline-block;animation:lgspin 1s linear infinite}
@keyframes lgspin{to{transform:rotate(360deg)}}
@media (max-width:900px){
  .lg-wrap{grid-template-columns:1fr}
  .lg-brand{display:none}
  .lg-side{padding:16px}
  .lg-card{padding:24px 20px 20px}
}
