/**
 * theme-refresh.css — v4 (blue–white product tone, still distinct, LARGE type)
 *
 * Design Read: e-offize ECM login — keep product blue/white (Fraser red deferred);
 * stay visibly newer than mint-flat original via card + hierarchy; density preserved.
 * Dials: VARIANCE 4 / MOTION 2 / DENSITY 6
 *
 * Signature: white form card on cool blue-gray ground; brand blue (#02449B) ink & accents;
 * LOGIN solid brand blue; Fraser secondary filled lighter blue.
 *
 * Skills: design-taste-frontend, frontend-design, web-design-guidelines, accessibility
 */

/* Self-hosted Prompt (OFL) — no Google Fonts; PRD may be offline.
   License: wwwroot/Fonts/OFL-Prompt.txt */
@font-face {
  font-family: "Prompt";
  src: url("../Fonts/Prompt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prompt";
  src: url("../Fonts/Prompt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prompt";
  src: url("../Fonts/Prompt-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Prompt";
  src: url("../Fonts/Prompt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --eo-font: "Prompt", "Segoe UI", Tahoma, sans-serif;
  --eo-ink: #02449b;
  --eo-ink-deep: #013a7a;
  --eo-ink-soft: #4a6fa0;
  --eo-accent: #2f7fd1;
  --eo-accent-soft: rgba(47, 127, 209, 0.28);
  --eo-surface: #e8eef5;
  --eo-card: #ffffff;
  --eo-line: #02449b;
  --eo-primary: #02449b;
  --eo-primary-hover: #013a7a;
  --eo-fraser: #1a6bb5;
  --eo-fraser-hover: #0e4f8a;
  --eo-focus: #2f7fd1;
  --eo-radius: 16px;
}

html,
body,
.limiter,
.container-login,
.wrap-login,
.login-form {
  font-family: var(--eo-font) !important;
}

body {
  -webkit-font-smoothing: antialiased;
  color: var(--eo-ink);
}

.container-login {
  background: var(--eo-surface) !important;
}

.login-form {
  background: var(--eo-card) !important;
  box-shadow:
    0 12px 40px rgba(2, 68, 155, 0.12),
    0 2px 8px rgba(2, 68, 155, 0.06) !important;
  border-radius: var(--eo-radius) 0 0 var(--eo-radius);
  z-index: 2;
}

.login-form .container.mt-2.p-5 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

.login-more {
  filter: saturate(1.02) contrast(1.01);
}

#titlename,
h1#titlename {
  font-family: var(--eo-font) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--eo-ink) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-wrap: balance;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem !important;
}

#titlename::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--eo-accent);
  border-radius: 2px;
}

#titlename b {
  font-weight: 700 !important;
  color: var(--eo-ink) !important;
}

p,
.forgot-pw,
label {
  font-family: var(--eo-font) !important;
  color: var(--eo-ink-soft) !important;
}

.wrap-input {
  border-bottom: 2px solid var(--eo-line) !important;
  margin-bottom: 28px !important;
}

.login-input,
input.login-input {
  font-family: var(--eo-font) !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  color: var(--eo-ink) !important;
  border: none !important;
  transition: box-shadow 0.2s ease;
}

.login-input::placeholder {
  font-family: var(--eo-font) !important;
  font-size: 25px !important;
  color: #7a8b9a !important;
  opacity: 1;
}

.wrap-input:focus-within {
  border-bottom-color: var(--eo-accent) !important;
  box-shadow: 0 2px 0 0 var(--eo-accent-soft);
}

.login-input:focus-visible {
  outline: none;
}

.login-form-btn,
a.login-form-btn {
  font-family: var(--eo-font) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 10px !important;
  background: var(--eo-primary) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 14px rgba(2, 68, 155, 0.22) !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.login-form-btn:hover,
a.login-form-btn:hover {
  background: var(--eo-primary-hover) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(2, 68, 155, 0.28) !important;
  transform: translateY(-1px);
}

.login-form-btn:focus-visible,
a.login-form-btn:focus-visible {
  outline: 2px solid var(--eo-focus);
  outline-offset: 3px;
}

.login-form-btn.bg-blue,
a.login-form-btn.bg-blue {
  background: var(--eo-fraser) !important;
  color: #fff !important;
  border-color: var(--eo-fraser) !important;
  box-shadow: 0 4px 14px rgba(26, 107, 181, 0.2) !important;
}

.login-form-btn.bg-blue:hover,
a.login-form-btn.bg-blue:hover {
  background: var(--eo-fraser-hover) !important;
  color: #fff !important;
  border-color: var(--eo-fraser-hover) !important;
}

.container-login-form-btn {
  gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .login-form-btn,
  a.login-form-btn,
  input.login-input,
  .fas::before,
  .fas::after {
    transition: none !important;
    transform: none !important;
  }
}

@media (max-width: 992px) {
  .login-form {
    border-radius: var(--eo-radius);
    margin: 1rem;
    width: calc(100% - 2rem) !important;
  }
}

.login-form .site-version {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--eo-border);
  text-align: center;
  color: #a6a6a6;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
