/* Staff auth pages in the Workspace look (loaded by views/authentication/includes/my_head.php) */
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("../fonts/figtree/figtree-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url("../fonts/figtree/figtree-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --a-bg: #eef3fa;
  --a-card: rgba(255, 255, 255, .84);
  --a-card-border: rgba(255, 255, 255, .7);
  --a-input: #ffffff;
  --a-border: #d2deec;
  --a-text: #1f2a44;
  --a-text-2: #5d6b89;
  --a-text-3: #97a5c0;
  --a-accent: #2b8cff;
  --a-accent-2: #1a7ef2;
  --a-accent-soft: #e5f1ff;
  --a-veil: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(10, 16, 32, .15), transparent 70%), linear-gradient(165deg, rgba(10, 16, 32, .35) 0%, rgba(10, 16, 32, .55) 50%, rgba(6, 10, 22, .85) 100%);
  --a-shadow: 0 30px 80px rgba(15, 30, 70, .28), 0 4px 14px rgba(15, 30, 70, .10);
  --a-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --a-bg: #0f1626;
    --a-card: rgba(23, 32, 54, .82);
    --a-card-border: rgba(255, 255, 255, .08);
    --a-input: #1b2640;
    --a-border: #31416a;
    --a-text: #e8eefb;
    --a-text-2: #a9b6d3;
    --a-text-3: #6f7fa3;
    --a-accent: #4ea0ff;
    --a-accent-2: #6db1ff;
    --a-accent-soft: #1b3355;
    --a-veil: linear-gradient(165deg, rgba(6, 10, 22, .55) 0%, rgba(6, 10, 22, .7) 50%, rgba(3, 6, 14, .92) 100%);
    --a-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

html, body { font-size: 16px; min-height: 100%; }
body.authentication, body.login_admin {
  margin: 0; padding: 0;
  font-family: var(--a-font) !important;
  color: var(--a-text-2);
  background: var(--a-bg) !important;
  -webkit-font-smoothing: antialiased;
}
body > * { font-size: 14px; }

/* blurred random monster + veil */
html::before, html::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
html::before {
  inset: -40px;
  background: var(--auth-bg, none) center / cover no-repeat;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.08);
  animation: ws-auth-drift 40s ease-in-out infinite alternate;
}
html::after { background: var(--a-veil); }
@keyframes ws-auth-drift { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
@media (prefers-reduced-motion: reduce) { html::before { animation: none; } }

body > * { position: relative; z-index: 1; }

/* --- layout (own login view) --- */
.ws-auth-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}
.ws-auth-card,
body.authentication:not(.ws-auth) .tw-bg-white {
  width: 100%; max-width: 420px; box-sizing: border-box;
  background: var(--a-card) !important;
  border: 1px solid var(--a-card-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--a-shadow) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}
.ws-auth-card { padding: 36px 36px 32px; animation: ws-auth-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ws-auth-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .ws-auth-card { padding: 28px 22px 24px; border-radius: 20px !important; } }

.ws-auth-card .company-logo { padding: 0 0 22px; text-align: center; }
.company-logo img { margin: 0 auto; display: block; max-height: 46px; max-width: 100%; width: auto; height: auto; }

.ws-auth-head { text-align: center; margin-bottom: 26px; }
.ws-auth-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 750; letter-spacing: -.01em; color: var(--a-text); }
.ws-auth-head p { margin: 0; color: var(--a-text-2); font-size: 14px; }

.ws-auth-foot { margin: 22px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

/* --- form controls (all auth pages) --- */
body.authentication .form-group { margin-bottom: 18px; }
body.authentication .control-label, body.authentication label { font-weight: 650; font-size: 13px; color: var(--a-text); margin: 0 0 7px; }
.ws-auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ws-auth-label-row a, body.authentication a { color: var(--a-accent-2); font-size: 13px; font-weight: 550; text-decoration: none; }
body.authentication a:hover { text-decoration: underline; }

body.authentication .form-control {
  height: 44px; padding: 0 14px;
  font-family: inherit; font-size: 14px; color: var(--a-text);
  background: var(--a-input); border: 1px solid var(--a-border); border-radius: 12px;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
body.authentication .form-control:focus { border-color: var(--a-accent); box-shadow: 0 0 0 4px var(--a-accent-soft); outline: 0; }
body.authentication .checkbox label { font-weight: 500; color: var(--a-text-2); }

body.authentication .btn-primary {
  height: 46px; border: 0; border-radius: 14px;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  background: linear-gradient(180deg, #4ea0ff, var(--a-accent)) !important; color: #fff !important;
  box-shadow: 0 8px 22px rgba(43, 140, 255, .35);
  transition: transform .12s, box-shadow .15s, filter .15s;
}
body.authentication .btn-primary:hover { filter: brightness(1.05); box-shadow: 0 10px 26px rgba(43, 140, 255, .45); }
body.authentication .btn-primary:active { transform: translateY(1px); }
.ws-auth-submit { margin-top: 8px; }

body.authentication .alert { border-radius: 12px; border: 0; font-size: 13px; }

/* --- core views (forgot/reset password, 2FA) not overridden: centre + recolour --- */
body.authentication:not(.ws-auth) { background-color: transparent; }
body.authentication:not(.ws-auth) > div { padding-top: 10vh !important; }
body.authentication:not(.ws-auth) h1, body.authentication:not(.ws-auth) h3 { color: #fff !important; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); font-weight: 750; }
body.authentication:not(.ws-auth) .tw-bg-white { margin-left: auto !important; margin-right: auto !important; }
body.authentication:not(.ws-auth) .company-logo { width: fit-content; margin: 0 auto 22px; padding: 16px 28px; border-radius: 18px; background: var(--a-card); border: 1px solid var(--a-card-border); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: var(--a-shadow); }

@media screen and (max-height: 575px) {
  #rc-imageselect, .g-recaptcha { transform: scale(.83); transform-origin: 0 0; }
}

/* --- customer pages (helpdesk login, forgot/reset password): theme views my_login … inside the clients layout --- */
body.hd-auth #wrapper, body.hd-auth #content { background: transparent !important; padding: 0 !important; margin: 0 !important; min-height: 0; }
body.hd-auth #content > .container { width: 100%; max-width: none; padding: 0; }
body.hd-auth #content > .container > .row { margin: 0; }
body.hd-auth #content > .container:first-child > .row:empty { display: none; }
body.hd-auth #content > .container:first-child .alert { max-width: 420px; margin: 24px auto -16px; position: relative; z-index: 2; }
body.hd-auth .ws-auth-card .form-group:last-of-type { margin-bottom: 18px; }
body.hd-auth .ws-auth-card .btn-default { margin-top: 10px; border-radius: 14px; height: 44px; }
body.hd-auth .text-danger, body.hd-auth .form-group p.text-danger { font-size: 12px; margin: 6px 0 0; }
.ws-auth-back { margin: 18px 0 0; text-align: center; }
