/* Shared Wafi auth UI (login / register / forgot / reset) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#lpx-wrapper,
.lpx-content,
#lpx-wrapper .card,
#lpx-wrapper .card-body { all: unset !important; display: contents !important; }

:root {
  --su-brand: #F97316;
  --su-brand-h: #EA6A0E;
  --su-brand-50: #FFF4EA;
  --su-brand-100: #FFE0CB;
  --su-brand-600: #E1610F;
  --su-ink-900: #0B1020;
  --su-ink-800: #161D33;
  --su-ink-700: #2A3142;
  --su-ink-600: #404758;
  --su-ink-500: #5C6477;
  --su-ink-400: #828A9C;
  --su-bg: #FFFFFF;
  --su-border: rgba(11,16,32,.10);
  --su-border-strong: rgba(11,16,32,.16);
  --su-danger: #DC2626;
  --su-radius-sm: 6px;
  --su-radius-md: 10px;
  --su-shadow-md: 0 4px 12px rgba(11,16,32,.06), 0 2px 4px rgba(11,16,32,.04);
  --su-ease: cubic-bezier(.22,1,.36,1);
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Noto Sans Bengali', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body, body.abp-empty-layout {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--su-ink-900);
  background: var(--su-bg) !important;
  overflow-x: hidden;
}

.su-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  min-height: 100vh;
}

.su-brand {
  position: relative;
  overflow: hidden;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(680px 540px at 100% 110%, rgba(249,115,22,.14), rgba(249,115,22,0) 55%),
    linear-gradient(160deg, #FFF7EF 0%, #FFF1E6 55%, #FFE7D3 100%);
}

.su-book-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: background-position;
  background-repeat: repeat;
  background-image: url("/images/patterns/books-pattern.webp");
}
.su-book-layer.a { background-size: 360px 360px; opacity: .13; animation: suBookDrift 70s linear infinite; }
.su-book-layer.b { background-size: 560px 560px; opacity: .07; animation: suBookDriftB 115s linear infinite; }

@keyframes suBookDrift  { from { background-position: 0 0; } to { background-position: 360px 720px; } }
@keyframes suBookDriftB { from { background-position: 0 0; } to { background-position: -560px 560px; } }

@media (prefers-reduced-motion: reduce) {
  .su-book-layer { animation: none !important; }
}

.su-panel-content { position: relative; z-index: 1; display: flex; flex-direction: column; }
.su-brand-logo { margin-bottom: 40px; }
.su-brand-logo-img { height: 34px; width: auto; display: block; object-fit: contain; }
.su-brand-heading {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 700;
  color: var(--su-ink-900);
  margin: 0 0 32px;
  max-width: 15ch;
}
.su-benefits { display: flex; flex-direction: column; gap: 18px; }
.su-benefit { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 600; color: var(--su-ink-800); }
.su-benefit-ico {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 9px;
  background: var(--su-brand-100);
  color: var(--su-brand-600);
  display: flex; align-items: center; justify-content: center;
}
.su-benefit-ico svg { width: 18px; height: 18px; }
.su-brand-foot { margin-top: 40px; font-size: 14px; font-weight: 500; color: var(--su-ink-500); line-height: 1.6; max-width: 42ch; }

.su-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  background: var(--su-bg);
}
.su-form-wrap { width: 100%; max-width: 460px; }

.su-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.su-topbar > *:only-child { margin-left: auto; }

.su-lang { display: flex; align-items: center; gap: 6px; color: var(--su-ink-400); font-size: 13px; }
.su-lang-btn.btn, .su-lang-btn {
  font-size: 13px !important;
  color: var(--su-brand) !important;
  font-weight: 600 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  text-decoration: none !important;
}
.su-lang-btn.btn:hover { color: var(--su-brand-h) !important; }

.su-head { margin-bottom: 28px; }
.su-title { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--su-ink-900); margin: 0 0 8px; }
.su-sub { font-size: 15px; line-height: 1.55; color: var(--su-ink-500); margin: 0; }
.su-req { color: var(--su-brand); font-weight: 600; margin-left: 2px; }

.su-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--su-radius-md); padding: 11px 14px; font-size: 13.5px; line-height: 1.55; margin-bottom: 18px; }
.su-alert:empty { display: none; }
.su-alert svg { flex-shrink: 0; margin-top: 2px; }
.su-alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.su-alert-warn  { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.su-alert-ok    { background: #ECFDF5; border: 1px solid #BBF7D0; color: #166534; }

.su-form { display: block; }
.su-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.su-field label { font-size: 13px; font-weight: 600; color: var(--su-ink-700); }

.su-input-wrap { position: relative; display: flex; align-items: center; }
.su-lead-ico {
  position: absolute; left: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--su-ink-400); pointer-events: none;
}
.su-lead-ico svg { width: 16px; height: 16px; }
.su-ipt {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--su-ink-900);
  background: #fff;
  border: 1px solid var(--su-border);
  border-radius: var(--su-radius-md);
  padding: 12px 16px 12px 40px;
  line-height: 1.4;
  outline: none;
  transition: border-color .15s var(--su-ease), box-shadow .15s var(--su-ease);
}
.su-ipt.su-ipt-pw { padding-right: 44px; }
.su-ipt::placeholder { color: var(--su-ink-400); }
.su-ipt:hover:not(:focus) { border-color: var(--su-border-strong); }
.su-ipt:focus { border-color: var(--su-brand); box-shadow: 0 0 0 3px rgba(249,115,22,.16); }
.su-input-wrap:focus-within .su-lead-ico { color: var(--su-brand); }

.su-pw-toggle {
  position: absolute; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 0; background: transparent;
  color: var(--su-ink-400); cursor: pointer;
  font-size: 16px; line-height: 1;
  border-radius: var(--su-radius-sm);
}
.su-pw-toggle:hover { color: var(--su-ink-600); }

.su-error { font-size: 12px; font-weight: 500; color: var(--su-danger); }
.su-error:empty { display: none; }
/* Validation messages carry no class= of ours on purpose. ASP.NET Core's validation tag
   helper builds its own class attribute and clobbers whatever we set, rendering the
   literal string "Microsoft.AspNetCore.Mvc.TagHelpers.TagHelperOutputExtensions+
   ClassAttributeHtmlContent" into the markup as a class name. That silently dropped the
   .su-error rules above; worse, it put the token "Microsoft" in the DOM of a page with a password
   field on a non-Microsoft domain, which is a brand-impersonation signal to the
   anti-phishing classifiers that flagged this deployment. So style by the data attribute
   the tag helper does emit reliably. */
[data-valmsg-for] { font-size: 12px; font-weight: 500; color: var(--su-danger); }
[data-valmsg-for]:empty { display: none; }
.field-validation-error { display: block; font-size: 12px; font-weight: 500; color: var(--su-danger); }
.input-validation-error { border-color: var(--su-danger) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.14) !important; }

.su-primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: #fff;
  background: var(--su-brand);
  border: 0; border-radius: var(--su-radius-md);
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: var(--su-shadow-md);
  transition: background .15s var(--su-ease);
}
.su-primary-btn:hover { background: var(--su-brand-h); color: #fff; }
.su-primary-btn:disabled { opacity: .6; cursor: not-allowed; }

.su-outline-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 10px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--su-ink-600);
  background: transparent;
  border: 1px solid var(--su-border-strong);
  border-radius: var(--su-radius-md);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
}
.su-outline-btn:hover { border-color: var(--su-ink-400); color: var(--su-ink-800); background: #FAFAFB; }

.su-signin { font-size: 14.5px; color: var(--su-ink-500); text-align: center; margin: 24px 0 0; }
.su-signin a { color: var(--su-brand); font-weight: 600; text-decoration: none; }
.su-signin a:hover { color: var(--su-brand-h); text-decoration: underline; }
.su-foot { font-size: 12.5px; color: var(--su-ink-400); text-align: center; margin: 22px 0 0; }

@media (max-width: 900px) {
  .su-grid { grid-template-columns: 1fr; }
  .su-brand { display: none !important; }
  .su-form-panel { padding: 40px 24px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .su-form-panel { padding: 32px 18px; }
  .su-title { font-size: 22px; }
}
