/* MSY ByteCheck BMS — sign-in / password pages */
:root {
  --a-brand: #0a8fd4; --a-brand-600: #0778b4; --a-brand-50: #e8f5fc;
  --a-ink: #0b2a4a; --a-text: #33415a; --a-muted: #66768f; --a-subtle: #97a3b6;
  --a-border: #cfd8e3; --a-bg: #f2f5f9;
  --a-danger: #e5484d; --a-success: #12a150;
  --a-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body.ts-auth { margin: 0; font-family: var(--a-font); font-size: 14px; color: var(--a-text); background: #fff; -webkit-font-smoothing: antialiased; }
.ts-auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) 1fr; }

/* Brand panel */
.ts-auth-aside {
  position: relative; overflow: hidden; color: #fff;
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 360px at 110% -10%, rgba(56, 182, 240, .5), transparent 60%),
    radial-gradient(600px 400px at -20% 120%, rgba(63, 111, 240, .45), transparent 60%),
    linear-gradient(135deg, #0b1726 0%, #0f2c4c 100%);
}
.ts-auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.ts-auth-aside > * { position: relative; }
.ts-auth-mark { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.ts-auth-mark img { height: 30px; width: auto; display: block; }
.ts-auth-copy { max-width: 470px; }
.ts-auth-copy .eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8fd3f5; margin-bottom: 14px; }
.ts-auth-copy h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 700; color: #fff; }
.ts-auth-copy h1 span { background: linear-gradient(90deg, #6fd0ff, #a9b9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-auth-copy p { color: #b9c8db; font-size: 15.5px; line-height: 1.6; margin: 0 0 28px; }
.ts-auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ts-auth-points li { display: flex; align-items: center; gap: 12px; color: #dbe6f3; font-weight: 500; }
.ts-auth-points i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #8fd3f5; font-size: 16px; }
.ts-auth-aside small { color: #7f93ad; font-size: 12.5px; }

/* Form side */
.ts-auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; background: #fff; }
.ts-auth-card { width: 100%; max-width: 400px; }
.ts-auth-mobile-logo { display: none; margin-bottom: 28px; }
.ts-auth-mobile-logo img { height: 34px; }
.ts-auth-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--a-ink); margin: 0 0 6px; }
.ts-auth-card .lead { color: var(--a-muted); margin: 0 0 28px; font-size: 14.5px; }
.ts-auth-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--a-brand-50); color: var(--a-brand-600); font-size: 22px; margin-bottom: 18px; }

.ts-field { margin-bottom: 18px; }
.ts-field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 13px; color: var(--a-ink); margin-bottom: 7px; }
.ts-field label a { font-weight: 600; font-size: 12.5px; color: var(--a-brand-600); text-decoration: none; }
.ts-field label a:hover { text-decoration: underline; }
.ts-input { position: relative; }
.ts-input > i { position: absolute; left: 14px; top: 23px; transform: translateY(-50%); color: var(--a-subtle); font-size: 16px; pointer-events: none; }
.ts-input input { width: 100%; height: 46px; padding: 0 44px 0 42px; font: 500 14.5px var(--a-font); color: var(--a-ink); border: 1px solid var(--a-border); border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ts-input input::placeholder { color: var(--a-subtle); font-weight: 400; }
.ts-input input:hover { border-color: #bfc8d5; }
.ts-input input:focus { outline: 0; border-color: var(--a-brand); box-shadow: 0 0 0 4px rgba(10, 143, 212, .14); }
.ts-eye { position: absolute; right: 6px; top: 23px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; color: var(--a-subtle); cursor: pointer; font-size: 16px; }
.ts-eye:hover { background: var(--a-bg); color: var(--a-ink); }
.ts-error-text { display: none; color: var(--a-danger); font-size: 12.5px; margin-top: 6px; font-weight: 500; }
.was-validated .ts-input input:invalid { border-color: var(--a-danger); }
.was-validated .ts-input input:invalid:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.was-validated .ts-input input:invalid ~ .ts-error-text { display: block; }

.ts-submit {
  width: 100%; height: 48px; border: 0; border-radius: 11px;
  background: linear-gradient(180deg, #13a0e6, var(--a-brand));
  color: #fff; font: 600 15px var(--a-font); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 22px -10px rgba(10, 143, 212, .8), inset 0 1px 0 rgba(255,255,255,.2);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.ts-submit:hover { filter: brightness(1.05); }
.ts-submit:active { transform: translateY(1px); }
.ts-submit[disabled] { opacity: .75; cursor: progress; }
.ts-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: tsspin .7s linear infinite; display: none; }
.ts-submit.is-loading .ts-spinner { display: inline-block; }
@keyframes tsspin { to { transform: rotate(360deg); } }

.ts-flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 500; margin-bottom: 20px; border: 1px solid; }
.ts-flash i { font-size: 16px; margin-top: 1px; }
.ts-flash.error { background: #fdecec; border-color: #f8cfd0; color: #a51f25; }
.ts-flash.success { background: #e7f7ee; border-color: #c8ecd7; color: #0b6b35; }

.ts-auth-alt { margin-top: 22px; text-align: center; color: var(--a-muted); font-size: 13.5px; }
.ts-auth-alt a { color: var(--a-brand-600); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ts-auth-alt a:hover { text-decoration: underline; }
.ts-auth-foot { margin-top: 40px; color: var(--a-subtle); font-size: 12.5px; text-align: center; }
.ts-auth-foot a { color: var(--a-muted); text-decoration: none; font-weight: 500; }
.ts-auth-foot a:hover { color: var(--a-brand-600); }

@media (max-width: 960px) {
  .ts-auth-shell { grid-template-columns: 1fr; }
  .ts-auth-aside { display: none; }
  .ts-auth-main { background: var(--a-bg); }
  .ts-auth-card { background: #fff; padding: 30px 26px; border-radius: 18px; border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -24px rgba(15,27,45,.3); }
  .ts-auth-mobile-logo { display: block; }
}
