/* Shared shell for the custom (Layout = Theme.GetEmptyLayout()) auth pages — Login, ForgotPassword,
   ResetPassword, SetPassword. Ported from the nTouch DX AuthServer (same file name and class names, so
   the two products stay diffable); the PMS-only additions - the dynamic background image and the
   announcement carousel on the brand panel - are grouped at the end of this file. */
html, body { margin: 0; padding: 0; }
.sdxl-page {
    --sdxl-ff: 'Lexend Deca', Helvetica, Arial, sans-serif;
    --sdxl-bg: #F4F5F7; --sdxl-s: #FFFFFF; --sdxl-s2: #FAFAFA; --sdxl-s3: #F2F2F2;
    --sdxl-t9: #141414; --sdxl-t7: #333333; --sdxl-t5: #666666; --sdxl-t3: #8A8A8A;
    --sdxl-bd: #EDEDED;
    --sdxl-br: #F26336;
    --sdxl-brg: rgba(242,99,54,.16);
    --sdxl-ok: #10B981; --sdxl-oks: rgba(16,185,129,.10);
    --sdxl-err: #EF4444; --sdxl-errs: rgba(239,68,68,.10);
    --sdxl-warn: #F59E0B; --sdxl-warns: rgba(245,158,11,.10);
    --sdxl-inf: #3B82F6; --sdxl-infs: rgba(59,130,246,.10);
    --sdxl-rsm: 4px; --sdxl-rmd: 6px; --sdxl-rlg: 10px;
    --sdxl-sh1: 0 1px 2px rgba(38,45,118,.10), 0 1px 3px rgba(15,22,45,.06);
    font-family: var(--sdxl-ff);
    min-height: 100vh; display: flex; background: var(--sdxl-bg); position: relative; overflow: hidden;
}
.sdxl-brand {
    width: 42%; min-width: 380px; display: flex; flex-direction: column; justify-content: space-between;
    padding: 44px; position: relative; overflow: hidden;
    background: linear-gradient(150deg, #F26336 0%, #E95A2D 55%, #D94E22 100%);
}
.sdxl-circle-1 { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); top: -90px; inset-inline-end: -70px; }
.sdxl-circle-2 { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: 40px; inset-inline-start: -60px; }
.sdxl-logo-row { position: relative; display: flex; align-items: center; gap: 11px; }
.sdxl-logo-box { display: inline-flex; }
.sdxl-logo-box img { height: 44px; object-fit: contain; filter: brightness(0) invert(1); } /* the orange logo, in white, on the orange panel */
/* Vertically centred in the panel: auto margins take the free space around the copy, and the
   ::after spacer mirrors the logo row's height so the centre is the panel's, not the space below
   the logo. */
.sdxl-brand-copy { position: relative; color: #fff; margin-block: auto; }
.sdxl-brand::after { content: ''; flex: 0 0 44px; }
.sdxl-headline { font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 14px; }
.sdxl-subtext { font-size: 14px; font-weight: 300; opacity: .7; line-height: 1.6; max-width: 380px; }
.sdxl-compliance { position: relative; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: 12px; font-weight: 300; }
.sdxl-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.sdxl-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
/* Result/status screens (Check your email, Link expired, Success) have no title to pair the badge
   with - it's just an empty placeholder div + the badge, with the icon as the next sibling below.
   Taken out of flow and pinned level with the icon (top:20px lines up with the icon's own
   vertical span) instead of sitting in its own row above it. */
.sdxl-title-row-standalone { position: absolute; top: 20px; inset-inline-end: 24px; }
.sdxl-lang-toggle { flex-shrink: 0; min-width: 34px; height: 32px; padding: 0 10px; border-radius: var(--sdxl-rmd); border: 1px solid var(--sdxl-bd); background: var(--sdxl-s); color: var(--sdxl-t5); font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.sdxl-card { width: 100%; max-width: 380px; position: relative; }
.sdxl-card-wide { max-width: 460px; }
.sdxl-title { font-size: 22px; font-weight: 600; color: var(--sdxl-t9); margin-bottom: 4px; }
.sdxl-subtitle { font-size: 13px; font-weight: 300; color: var(--sdxl-t5); margin-bottom: 22px; line-height: 1.55; }
.sdxl-back-link { font-size: 12px; font-weight: 600; color: var(--sdxl-t5); display: inline-flex; align-items: center; gap: 5px; margin-bottom: 18px; text-decoration: none; }
.sdxl-back-link:hover { color: var(--sdxl-t7); }
.sdxl-field { margin-bottom: 15px; }
.sdxl-label { display: block; font-size: 12px; font-weight: 600; color: var(--sdxl-t7); margin-bottom: 6px; }
.sdxl-req { color: var(--sdxl-err); }
.sdxl-input-wrap { position: relative; }
.sdxl-input-icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--sdxl-t3); pointer-events: none; font-size: 14px; }
.sdxl-input { width: 100%; box-sizing: border-box; padding: 11px 12px; padding-inline-start: 36px; border-radius: var(--sdxl-rmd); border: 1px solid var(--sdxl-bd); background: var(--sdxl-s2); font-size: 13.5px; font-weight: 300; color: var(--sdxl-t9); outline: none; font-family: var(--sdxl-ff); }
.sdxl-input:focus { border-color: var(--sdxl-br); box-shadow: 0 0 0 3px var(--sdxl-brg); }
/* input-validation-error is jQuery Unobtrusive Validation's own errorClass (server-rendered and
   jQuery-managed errors); sdxl-invalid is this page's own client-side pattern check, kept as a
   separate class so jQuery can't strip it off mid-typing. Same look either way. */
.sdxl-input.input-validation-error, .sdxl-input.sdxl-invalid { border-color: var(--sdxl-err); background: var(--sdxl-errs); }
/* Without this the field keeps the brand-coloured focus glow while showing a red border, since it
   is necessarily focused while being typed into. */
.sdxl-input.input-validation-error:focus, .sdxl-input.sdxl-invalid:focus { border-color: var(--sdxl-err); box-shadow: 0 0 0 3px var(--sdxl-errs); }
.sdxl-input-pw { padding-inline-end: 64px; }
.sdxl-eye-icon { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--sdxl-t3); cursor: pointer; font-size: 14px; }
.sdxl-caps-icon { position: absolute; inset-inline-end: 34px; top: 50%; transform: translateY(-50%); color: var(--sdxl-br); font-size: 14px; }
.sdxl-err-msg { display: none; align-items: center; gap: 5px; font-size: 11.5px; color: var(--sdxl-err); margin-top: 5px; }
.sdxl-err-msg:has(span:not(:empty)) { display: flex; }
.sdxl-banner { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: var(--sdxl-rmd); margin-bottom: 16px; font-size: 12.5px; font-weight: 500; line-height: 1.45; }
.sdxl-banner i { margin-top: 1px; font-size: 15px; }
.sdxl-banner-danger { background: var(--sdxl-errs); border: 1px solid rgba(221,51,29,.25); color: var(--sdxl-err); }
.sdxl-banner-warning { background: var(--sdxl-warns); border: 1px solid rgba(217,119,6,.25); color: var(--sdxl-warn); }
.sdxl-banner-info { background: var(--sdxl-infs); border: 1px solid rgba(63,129,232,.18); color: var(--sdxl-inf); font-weight: 400; font-size: 11.5px; }
.sdxl-banner-info i { font-size: 14px; }
.sdxl-row { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; margin-bottom: 18px; }
.sdxl-remember { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 300; color: var(--sdxl-t5); cursor: pointer; margin: 0; }
.sdxl-checkbox { accent-color: var(--sdxl-br); width: 14px; height: 14px; }
.sdxl-forgot { font-size: 12px; font-weight: 600; color: var(--sdxl-br); text-decoration: none; }
.sdxl-forgot:hover { color: var(--sdxl-br); text-decoration: underline; }
.sdxl-btn-primary { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; font-family: var(--sdxl-ff); font-size: 13px; font-weight: 400; border-radius: var(--sdxl-rmd); border: none; background: var(--sdxl-br); color: #fff; cursor: pointer; box-shadow: var(--sdxl-sh1); transition: box-shadow .12s ease, transform .05s ease; text-decoration: none; }
.sdxl-btn-primary:hover { box-shadow: inset 0 0 0 999px rgba(0,0,0,.06); }
.sdxl-btn-primary:active { transform: translateY(.5px); }
.sdxl-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Outlined variant, applied ALONGSIDE .sdxl-btn-primary (class="sdxl-btn-primary sdxl-btn-outline")
   rather than as a standalone class - it overrides only the fill, so width, font, gap, radius and
   icon alignment can never drift from the solid button they sit next to.
   padding drops 11px -> 10px purely to absorb the 1px border this adds and keep both buttons the
   exact same height; box-shadow is cleared because the solid button's lift reads as a smudge
   behind a light fill. */
.sdxl-btn-primary.sdxl-btn-outline { padding: 10px; background: var(--sdxl-s); color: var(--sdxl-t9); border: 1px solid rgba(242,99,54,.4); box-shadow: none; }
.sdxl-btn-primary.sdxl-btn-outline:hover { background: var(--sdxl-s2); border-color: var(--sdxl-br); box-shadow: none; }


/* Password strength meter + rules checklist (authReset()/authCreate() authField companions) */
.sdxl-pw-meter { margin-bottom: 14px; }
.sdxl-pw-meter-bars { display: flex; gap: 4px; margin-bottom: 5px; }
.sdxl-pw-meter-bars > div { flex: 1; height: 4px; border-radius: 2px; background: var(--sdxl-s3); transition: background .2s; }
.sdxl-pw-meter-label { font-size: 11px; font-weight: 600; }
.sdxl-pw-checklist { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.sdxl-pw-checklist-item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 300; color: var(--sdxl-t5); }
.sdxl-pw-checklist-item.ok { color: var(--sdxl-ok); }
.sdxl-pw-checklist-item i { font-size: 12px; }

/* Result/status screens (authResetDone()/authInviteExpired()) */
.sdxl-result-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 24px; }
.sdxl-result-icon-ok { background: var(--sdxl-oks); color: var(--sdxl-ok); }
.sdxl-result-icon-err { background: var(--sdxl-errs); color: var(--sdxl-err); }

/* Kill GetEmptyLayout's wrapper card — margin/padding/border/shadow zeroed, full bleed */
html, body, #lpx-wrapper, .lpx-content { height: 100%; margin: 0 !important; padding: 0 !important; }
#lpx-wrapper .lpx-content .card {
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; width: 100%; max-width: none;
}
#lpx-wrapper .lpx-content .card .card-body { padding: 0 !important; }
/* dev-login-helper.js injects "Default username/password" hint spans as siblings of card-body — hide */
#lpx-wrapper .lpx-content .card > span.text-muted.small { display: none !important; }

/* abp.ui.setBusy()'s global overlay (abp.js/abp.css .abp-block-area) is appended straight to
   <body>, outside .sdxl-page, so it can't see the --sdxl-* custom properties scoped to that
   element - literal values here instead. Recolors the stock white-panel/blue-spinner overlay
   (fired on every form submit, e.g. the Login/OTP forms) to match this page's own palette instead
   of flashing ABP's default look on top of it. */
.abp-block-area { background-color: #F4F5F7; }
.abp-block-area.abp-block-area-busy:before { border-color: transparent #F26336 #F26336 #F26336; }
.abp-block-area.abp-block-area-busy:after { color: #333333; }


/* ---------------------------------------------------------------------------------------------
   PMS additions - the brand panel is data-driven here, unlike DX's static copy.

   Background: the company background image configured in PMS settings (LoginUiCacheService ->
   AuthBackground), shown EXACTLY as uploaded - no tint or scrim over it, and none of the default
   panel's decorative circles. With no image configured the panel is the plain brand-orange
   gradient above. Text over a photo keeps a soft shadow so it stays readable without recolouring
   the image; the logo keeps its own colours there instead of the white used on orange.
   --------------------------------------------------------------------------------------------- */
.sdxl-brand-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sdxl-brand:has(.sdxl-brand-bg) .sdxl-circle-1,
.sdxl-brand:has(.sdxl-brand-bg) .sdxl-circle-2 { display: none; }
.sdxl-brand:has(.sdxl-brand-bg) .sdxl-logo-box img { filter: none; }
.sdxl-brand:has(.sdxl-brand-bg) .sdxl-brand-copy { text-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* Announcement carousel (AuthAnnouncements view component) - replaces the static headline when
   at least one announcement is published; slides reuse .sdxl-headline/.sdxl-subtext so a slide
   and the static fallback are typographically identical. */
.sdxl-ann-slide { display: none; }
.sdxl-ann-slide.active { display: block; animation: sdxl-fade .4s ease; }
@keyframes sdxl-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sdxl-ann-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; margin-bottom: 14px; border-radius: 999px; background: rgba(0,0,0,.22); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-decoration: none; text-shadow: none; }
a.sdxl-ann-badge:hover { background: rgba(0,0,0,.34); color: #fff; }
.sdxl-ann-dots { display: flex; gap: 6px; margin-top: 20px; }
.sdxl-ann-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.3); cursor: pointer; border: 0; padding: 0; transition: width .2s, background .2s; }
.sdxl-ann-dot.active { width: 20px; background: #fff; }
.sdxl-subtext.sdxl-ann-content { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* Phones/tablets: the brand panel's 380px floor would push the form off-screen, so it is dropped
   and the logo moves above the card instead. */
.sdxl-mobile-logo { display: none; }
@media (max-width: 900px) {
    .sdxl-brand { display: none; }
    .sdxl-form-panel { padding: 24px 16px; align-items: flex-start; }
    .sdxl-mobile-logo { display: flex; justify-content: center; margin: 8px 0 28px; }
    .sdxl-mobile-logo img { height: 36px; }
    .sdxl-title-row-standalone { top: 0; inset-inline-end: 0; }
}
