/* Ornate i – Login page (Style A: banner + side panel, chosen 20 Nov 2026; replaces Style C).
   Header, footer, cookie banner and WhatsApp button come from home.css unchanged. */

/* Banner behind the top bar, menu and page title (same London photo as before) */
.lg-banner{color:#FFFFFF;background-image:linear-gradient(100deg,rgba(13,17,58,.94) 0%,rgba(21,27,84,.80) 50%,rgba(21,27,84,.40) 100%),url("../images/why-london-westminster.jpg");background-size:cover;background-position:center 55%}
.lg-intro{padding:40px 12px 0;display:flex;flex-direction:column;gap:16px;max-width:760px}
.lg-accent{color:#FF8A91}

/* Info panel + login card, overlapping the banner */
.lg-wrap{max-width:1240px;margin:-96px auto 0;padding:0 20px 80px;box-sizing:border-box;position:relative}
.lg-row-a{display:flex;flex-wrap:wrap;gap:24px;align-items:stretch}
.lg-side{flex:1 1 420px;min-width:0;box-sizing:border-box;border-radius:16px;box-shadow:0 16px 40px rgba(5,8,30,.18);padding:40px;color:#FFFFFF;display:flex;flex-direction:column;gap:24px;
  background-image:linear-gradient(160deg,rgba(13,17,58,.96) 0%,rgba(21,27,84,.90) 60%,rgba(21,27,84,.82) 100%),url("../images/bg-library.jpg");background-size:cover;background-position:center}
.lg-side-h2{margin:0;font-family:Poppins,Inter,system-ui,sans-serif;font-size:32px;line-height:1.25;font-weight:600;color:#FFFFFF}
.lg-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}
.lg-list li{display:flex;gap:16px;align-items:flex-start}
.lg-list li > span:last-child{display:flex;flex-direction:column;gap:2px}
.lg-list strong{font-size:18px;font-weight:600}
.lg-list li > span:last-child > span{font-size:14px;color:#DCE1F5}
.lg-ring{width:48px;height:48px;flex:none;border-radius:50%;border:2px solid rgba(255,255,255,.45);display:grid;place-items:center;color:#FFFFFF}
.lg-ring.lg-ring-red{border-color:rgba(255,138,145,.55);color:#FF8A91}
.lg-side-help{margin:auto 0 0;padding-top:20px;border-top:1px solid rgba(255,255,255,.18);font-size:14px;color:#DCE1F5}
.lg-side-help a{color:#FFFFFF;font-weight:600}
.lg-card{flex:0 1 460px;min-width:0;box-sizing:border-box;background:#FFFFFF;border:1px solid #E3E7F1;border-radius:16px;box-shadow:0 16px 40px rgba(5,8,30,.14);padding:32px;display:flex;flex-direction:column;gap:24px}

/* Student / Staff tabs */
.lg-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#F5F6FA;border:1px solid #EEF1F8;border-radius:999px}
.lg-tab{height:44px;border:0;border-radius:999px;background:transparent;color:#151B54;font:600 16px Inter,system-ui,sans-serif;cursor:pointer;transition:background-color .2s ease,color .2s ease}
.lg-tab[aria-selected="true"]{background:#151B54;color:#FFFFFF;box-shadow:0 4px 12px rgba(21,27,84,.25)}
.lg-tab:focus-visible{outline:3px solid #C5242E;outline-offset:2px}

/* Forms */
.lg-form{display:flex;flex-direction:column;gap:20px;margin:0}
.lg-form[hidden]{display:none}
.lg-h2{margin:0;font-family:Poppins,Inter,system-ui,sans-serif;font-size:22px;line-height:1.3;font-weight:600;color:#151B54}
.lg-sub{margin:0;font-size:14px;color:#5B6275}
.lg-field{display:flex;flex-direction:column;gap:6px}
.lg-field label{font-size:14px;font-weight:500;color:#1F2430}
.lg-field .fld{width:100%;box-sizing:border-box;height:48px;padding:0 14px;border:1px solid #E3E7F1;border-radius:8px;font:400 16px Inter,system-ui,sans-serif;color:#1F2430;background:#FFFFFF}
.lg-field .fld:focus{outline:none;border-color:#151B54;box-shadow:0 0 0 3px rgba(21,27,84,.14)}
.lg-pw{position:relative}
.lg-pw .fld{padding-right:52px}
[dir="rtl"] .lg-pw .fld{padding-right:14px;padding-left:52px}
.lg-eye{position:absolute;top:2px;right:2px;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:#5B6275;display:grid;place-items:center;cursor:pointer}
[dir="rtl"] .lg-eye{right:auto;left:2px}
.lg-eye[aria-pressed="true"]{color:#151B54}
.lg-eye:focus-visible{outline:3px solid #C5242E;outline-offset:-2px}
.lg-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;font-size:14px}
.lg-check{display:inline-flex;gap:8px;align-items:center;min-height:44px;color:#1F2430;cursor:pointer}
.lg-check input{width:18px;height:18px;margin:0;accent-color:#151B54}
.lg-link{font-weight:600;color:#C5242E;text-decoration:none}
.lg-link:hover{color:#9E1D23;text-decoration:underline}
.lg-btn{height:48px;border:0;border-radius:999px;background:#C5242E;color:#FFFFFF;font:600 16px Inter,system-ui,sans-serif;cursor:pointer}
.lg-new{display:flex;flex-direction:column;gap:12px;padding-top:20px;border-top:1px solid #EEF1F8;text-align:center}
.lg-new p{margin:0;font-size:14px;color:#5B6275}
.lg-btn-outline{display:flex;justify-content:center;align-items:center;height:48px;border:1.5px solid #151B54;border-radius:999px;color:#151B54;font-size:16px;font-weight:600;text-decoration:none}
.lg-info{display:flex;gap:12px;align-items:flex-start;padding:16px;background:#F5F6FA;border:1px solid #EEF1F8;border-radius:12px;font-size:14px;color:#5B6275}
.lg-notice{display:flex;gap:12px;align-items:flex-start;padding:16px;background:#F5F6FA;border:1px solid #E3E7F1;border-radius:12px;font-size:14px;color:#1F2430}
.lg-notice svg{color:#C5242E}
.lg-notice a{color:#C5242E;font-weight:600}
/* Phone numbers always read left to right, also in Arabic */
.lg-side-help a[href^="tel:"],.lg-notice a[href^="tel:"]{direction:ltr;unicode-bidi:isolate}

/* Tablet and phone: the panel and card stack; the sign-in card comes first */
@media (max-width:960px){
  .lg-card{order:-1}
  .lg-banner .hero-wrap{padding-bottom:112px !important}
  .lg-wrap{margin-top:-64px}
}
/* Phone */
@media (max-width:640px){
  .lg-side{padding:28px 20px}
  .lg-side-h2{font-size:26px}
  .lg-card{padding:24px 20px}
  .lg-wrap{padding:0 16px 56px}
}
@media (prefers-reduced-motion:reduce){.lg-tab{transition:none}}


/* Step 2b: error message, wider card and form parts shared by the account pages */
.lg-error{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;background:#FDECEE;border:1px solid #F3B8BD;border-radius:12px;font-size:14px;color:#8E1A22}
.lg-error a{color:#8E1A22;font-weight:600}
.lg-field .errorlist,.lg-check-wrap .errorlist{list-style:none;margin:0;padding:0;font-size:13px;color:#B0202A}
.lg-field .fld[aria-invalid="true"]{border-color:#C5242E}
.lg-hint{font-size:12px;color:#5B6275}
.lg-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:480px){.lg-grid2{grid-template-columns:minmax(0,1fr)}}
.lg-field select.fld{padding-right:8px;appearance:auto}
.lg-consent{display:flex;flex-direction:column;gap:12px;padding:16px;background:#F5F6FA;border:1px solid #EEF1F8;border-radius:12px;font-size:14px;color:#1F2430}
.lg-consent label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.lg-consent input{width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:#151B54}
.lg-consent a{color:#C5242E;font-weight:600}
.lg-req{color:#C5242E}
.lg-opt{color:#5B6275}
.lg-card.lg-card-wide{flex-basis:560px}
.lg-icon{width:56px;height:56px;border-radius:50%;border:2px solid #151B54;color:#151B54;display:grid;place-items:center}
.lg-icon.lg-icon-ok{border-color:#1E7B4A;color:#1E7B4A}
.lg-foot{margin:0;padding-top:16px;border-top:1px solid #EEF1F8;text-align:center;font-size:14px;color:#5B6275}
.lg-foot a{color:#C5242E;font-weight:600;text-decoration:none}
.lg-rules{margin:0;padding:0 0 0 18px;font-size:14px;color:#5B6275;display:flex;flex-direction:column;gap:2px}
[dir="rtl"] .lg-rules{padding:0 18px 0 0}

/* My account page */
.ac-card{flex:1 1 320px;min-width:0;box-sizing:border-box;background:#FFFFFF;border:1px solid #E3E7F1;border-radius:16px;box-shadow:0 16px 40px rgba(5,8,30,.10);padding:28px;display:flex;flex-direction:column;gap:16px}
.ac-card.ac-wide{flex:2 1 480px}
.ac-card h2{margin:0;font-family:Poppins,Inter,system-ui,sans-serif;font-size:20px;font-weight:600;color:#151B54}
.ac-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:24px;border:1.5px dashed #E3E7F1;border-radius:12px}
.ac-empty p{margin:0}
.ac-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:10px 0;border-bottom:1px solid #EEF1F8;font-size:14px}
.ac-row dt{color:#5B6275}
.ac-row dd{margin:0;color:#1F2430;font-weight:500;overflow-wrap:anywhere}
.ac-ok{display:inline-flex;gap:6px;align-items:center;color:#1E7B4A;font-weight:600}
.ac-wait{color:#8E1A22;font-weight:600}
.ac-links{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px}
.ac-links a{color:#C5242E;font-weight:600;text-decoration:none}
.ac-signout{display:inline-flex;align-items:center;height:48px;padding:0 22px;border-radius:999px;border:1.5px solid #FFFFFF;background:transparent;color:#FFFFFF;font:600 16px Inter,system-ui,sans-serif;cursor:pointer}
.ac-signout:hover{background:#FFFFFF;color:#151B54}
.ac-help{display:flex;gap:12px;align-items:flex-start;padding:16px 20px;background:#FFFFFF;border:1px solid #E3E7F1;border-radius:12px;font-size:14px;color:#5B6275;margin-top:24px}
.ac-help a{color:#C5242E;font-weight:600}
.ac-help a[href^="tel:"]{direction:ltr;unicode-bidi:isolate}
.lg-side-help a[href^="tel:"],.ac-help a[href^="tel:"],.lg-notice a[href^="tel:"]{white-space:nowrap}

/* Step 2c: staff security code pages */
.lg-otp{height:56px !important;font:600 24px Inter,system-ui,sans-serif !important;letter-spacing:12px;text-align:center;color:#151B54 !important}
.lg-otp.lg-otp-backup{font:600 22px ui-monospace,Menlo,Consolas,monospace !important;letter-spacing:4px}
.lg-steps{margin:0;padding:0 0 0 20px;font-size:14px;color:#1F2430;display:flex;flex-direction:column;gap:6px}
[dir="rtl"] .lg-steps{padding:0 20px 0 0}
.lg-qr{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:16px;background:#F5F6FA;border:1px solid #EEF1F8;border-radius:12px}
.lg-qr-img{padding:6px;background:#FFFFFF;border:1px solid #E3E7F1;border-radius:8px;line-height:0}
.lg-qr-img svg{display:block;width:168px;height:auto}
.lg-qr-key{flex:1 1 160px;min-width:0;display:flex;flex-direction:column;gap:4px;font-size:12px;color:#5B6275}
.lg-qr-key code{font:600 14px ui-monospace,Menlo,Consolas,monospace;color:#151B54;letter-spacing:1px;overflow-wrap:anywhere;direction:ltr;text-align:start}
.lg-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px;background:#F5F6FA;border:1px solid #EEF1F8;border-radius:12px}
.lg-codes code{font:600 15px ui-monospace,Menlo,Consolas,monospace;color:#151B54;padding:8px 10px;background:#FFFFFF;border:1px solid #E3E7F1;border-radius:8px;text-align:center;direction:ltr}
.lg-tracker{list-style:none;margin:0;padding:0 0 14px;border-bottom:1px solid #EEF1F8;display:flex;flex-wrap:wrap;gap:8px 16px}
.lg-tracker li{display:inline-flex;gap:6px;align-items:center;font-size:12px;font-weight:600;color:#5B6275}
.lg-tracker li>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:#EEF1F8;color:#5B6275}
.lg-tracker li.now,.lg-tracker li.done{color:#151B54}
.lg-tracker li.now>span{background:#C5242E;color:#FFFFFF}
.lg-tracker li.done>span{background:#151B54;color:#FFFFFF}
@media print{
  body *{visibility:hidden}
  #backup-codes,#backup-codes *{visibility:visible}
  #backup-codes{position:absolute;left:0;top:0;width:100%}
}

/* Language button on the account pages (24 Nov 2026): it shares the .lg-btn name with the Login button, so it is red
   here. On mouse-over it now turns a deeper red like "Apply now" instead of going pale with white text. */
.lg-btn[data-lang-toggle]{transition:transform .22s ease,background-color .2s ease,box-shadow .22s ease}
.lg-btn[data-lang-toggle]:hover,.lg-btn[data-lang-toggle]:focus-visible,.lg-btn[data-lang-toggle][aria-expanded="true"]{background:#9E1D23;border-color:#9E1D23;color:#FFFFFF;box-shadow:0 10px 22px rgba(197,36,46,.35)}
.lg-btn[data-lang-toggle]:hover{transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){.lg-btn[data-lang-toggle]{transition:none}.lg-btn[data-lang-toggle]:hover{transform:none}}

/* Login page banner in the website "white veil" style (approved 30 Nov 2026). Only the Login page: data-hero="white".
   Student account, sign-up and password pages keep the navy banner. */
/* Login banner photo: Westminster sunset (approved 1 Dec 2026), same layout as the other pages (static/css/photo_banners.css).
   Laptop/desktop: photo inside the page area, lined up with the menu bar, resized to fit. Arabic/Urdu use the mirrored copy. */
.lg-banner[data-hero="white"]{color:#151B54;background:#FFFFFF;position:relative;isolation:isolate}
.lg-banner[data-hero="white"]::before{content:"";position:absolute;top:0;bottom:0;left:max(40px, calc((100% - 1200px) / 2));right:max(40px, calc((100% - 1200px) / 2));z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#FFFFFF 0,#FFFFFF 440px,rgba(255,255,255,.85) 540px,rgba(255,255,255,0) 690px),linear-gradient(270deg,#FFFFFF 0,rgba(255,255,255,0) 30px),linear-gradient(180deg,#FFFFFF 0,rgba(255,255,255,.7) 50px,rgba(255,255,255,0) 110px),url("../images/banners/banner-login.jpg") right bottom/contain no-repeat}
[dir="rtl"] .lg-banner[data-hero="white"]::before{
  background:linear-gradient(270deg,#FFFFFF 0,#FFFFFF 470px,rgba(255,255,255,.88) 570px,rgba(255,255,255,0) 720px),linear-gradient(90deg,#FFFFFF 0,rgba(255,255,255,0) 30px),linear-gradient(180deg,#FFFFFF 0,rgba(255,255,255,.7) 50px,rgba(255,255,255,0) 110px),url("../images/banners/banner-login-rtl.jpg") left bottom/contain no-repeat}
.lg-banner[data-hero="white"] .lg-intro>p{max-width:600px}
@media (max-width:1024px){.lg-banner[data-hero="white"]::before{display:none}
  .lg-banner[data-hero="white"]{background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.84)),url("../images/banners/banner-login.jpg") 75% center/cover no-repeat,#FFFFFF}
  [dir="rtl"] .lg-banner[data-hero="white"]{background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.84)),url("../images/banners/banner-login-rtl.jpg") 25% center/cover no-repeat,#FFFFFF}}
@media (min-width:1025px){.lg-banner[data-hero="white"]>.hero-wrap{min-height:465px;box-sizing:border-box}}
.lg-banner[data-hero="white"] .hero-wrap>div:first-child,.lg-banner[data-hero="white"] .hero-wrap>div:first-child a,.lg-banner[data-hero="white"] [data-clock],
.lg-banner[data-hero="white"] .hero-wrap>div:first-child [style*="color: #FFFFFF"]:not([style*="background"]),.lg-banner[data-hero="white"] .hero-wrap>div:first-child [style*="color: #DCE1F5"]{color:#151B54!important}
.lg-banner[data-hero="white"] .lg-intro h1{color:#151B54}
.lg-banner[data-hero="white"] .lg-accent{color:#C5242E}
.lg-banner[data-hero="white"] .lg-intro>p{color:#3A4160!important}
