/* Your Company / Thasit 2027 - workspace styling v2027.0.3
 * Restores the responsive native Thasit login layout omitted from the first
 * Allstate brand-only stylesheet. All authentication remains platform-owned.
 */
body.ts-workspace {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
.ts-workspace {
  --as-gold: #ffd024;
  --as-gold-hover: #ffe178;
  --as-night: #0b1117;
  --as-gold-dark: #a97800;
}
.ts-workspace .ts-workspace-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
  min-width: 170px !important;
  line-height: 1 !important;
  color: var(--pp-text, #161c22);
}
.ts-workspace .ts-workspace-brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  max-height: 75px;
  height: auto;
  object-fit: contain;
}
.ts-workspace .ts-brand-caption {
  color: var(--pp-muted, #747b82);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ts-workspace .top { border-bottom-color: var(--pp-line, #e1e5e8); }
.ts-workspace .metric strong { color: var(--pp-accent, #a97800); }
.ts-workspace .rail a.on, .ts-workspace .sections a.on {
  color: var(--pp-accent, #a97800);
  background: var(--pp-hover, #f7f3e9);
}
.ts-workspace .ts-workspace-brand:hover { filter: brightness(1.05); }
.ts-workspace :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--pp-focus, #b58616);
  outline-offset: 3px;
}

/* Native login: full split-screen layout; no markup or form rewrites. */
body.ts-login {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--pp-text, #121820);
  background: var(--pp-surface, #fff);
  font: 400 15px/1.65 Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.ts-login *, body.ts-login *::before, body.ts-login *::after {
  box-sizing: border-box;
}
body.ts-login a { color: inherit; text-decoration: none; }
body.ts-login :where(h1, h2, p) { text-wrap: pretty; }
.ts-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(410px, .97fr);
  min-height: 100vh;
  min-height: 100svh;
}
.ts-login-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 700px;
  padding: clamp(26px, 3.5vw, 56px) clamp(28px, 7vw, 120px);
  background: #09131b url('placeholder.svg') center / cover no-repeat;
  color: #fff;
}
.ts-login-story::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(95deg, rgba(5, 12, 18, .95) 0%, rgba(5, 12, 18, .80) 46%, rgba(5, 12, 18, .32) 100%),
              linear-gradient(0deg, rgba(4, 11, 17, .72), transparent 35%);
}
.ts-login-story::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--as-gold), #bd8e06 55%, transparent);
}
.ts-login-logo {
  display: block;
  width: clamp(190px, 18vw, 275px);
  max-width: 100%;
  flex: none;
}
.ts-login-logo .ts-identity-logo,
.ts-login-logo picture { display: block; }
.ts-login-logo img {
  display: block;
  width: 100%;
  max-height: 94px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.ts-login-story-copy {
  width: min(100%, 530px);
  margin-block: auto;
  padding-block: 75px 115px;
}
.ts-login-eyebrow {
  margin: 0 0 17px;
  color: var(--pp-accent, #94670e);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.ts-login-story .ts-login-eyebrow { color: var(--as-gold); }
.ts-login-story-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4vw, 65px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.055em;
}
.ts-login-story-copy h1 span { color: var(--as-gold); }
.ts-login-story-copy > p:not(.ts-login-eyebrow) {
  max-width: 410px;
  margin: 25px 0 0;
  color: #e2e8ee;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.75;
}
.ts-login-story-line {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  color: #e8d7a2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.ts-login-story-line > span {
  width: 28px;
  height: 2px;
  flex: none;
  background: var(--as-gold);
}
.ts-login-image-note {
  position: absolute;
  bottom: 25px;
  left: clamp(28px, 7vw, 120px);
  color: #c5d0d8;
  font-size: 10px;
  letter-spacing: .04em;
}
.ts-login-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(25px, 3vw, 48px) clamp(28px, 5.4vw, 104px);
  background: var(--pp-surface, #fff);
  color: var(--pp-text, #141b23);
}
.ts-login-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--pp-muted, #646c74);
  font-size: 12px;
}
.ts-login-toolbar > a { font-weight: 600; }
.ts-login-toolbar > a:hover { color: var(--pp-accent, #94670e); }
.ts-login-toolbar .pp-theme-menu { margin: 0; }
.ts-login-toolbar .pp-theme-menu > summary {
  min-height: 40px;
  font-size: 12px;
  border: 1px solid var(--pp-line, #d9dbdf);
  background: var(--pp-raised, #fff);
}
.ts-login-toolbar .pp-theme-popover { z-index: 20; }
.ts-login-content {
  width: 100%;
  max-width: 425px;
  margin: auto;
  padding: 50px 0;
  outline: none;
}
.ts-login-emblem {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 0 25px;
  border: 1px solid color-mix(in srgb, var(--pp-accent, #b38a22) 35%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--pp-accent, #b38a22) 8%, transparent);
  color: var(--pp-accent, #94670e);
  font-size: 29px;
  line-height: 1;
}
.ts-login-content > .ts-login-eyebrow { margin-bottom: 12px; }
.ts-login-content h2 {
  margin: 0;
  color: var(--pp-text, #141b23);
  font-size: clamp(33px, 3vw, 45px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
}
.ts-login-description {
  margin: 15px 0 29px;
  color: var(--pp-muted, #606870);
  font-size: 14px;
  line-height: 1.6;
}
.ts-login .stack { display: grid; gap: 19px; }
.ts-login .stack label {
  display: grid;
  gap: 9px;
  color: var(--pp-text, #141b23);
  font-size: 13px;
  font-weight: 700;
}
.ts-login .stack input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--pp-control-border, #c5cbd0);
  border-radius: 8px;
  outline-offset: 3px;
  background: var(--pp-input, #f9fafb);
  color: var(--pp-text, #141b23);
  font: 400 16px/1.3 Inter, "Segoe UI", system-ui, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ts-login .stack input:hover { border-color: var(--pp-accent, #94670e); }
.ts-login .stack input:focus-visible {
  border-color: var(--pp-accent, #94670e);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-accent, #b38a22) 17%, transparent);
}
.ts-login .stack button {
  display: block;
  width: 100%;
  min-height: 51px;
  margin-top: 3px;
  padding: 13px 16px;
  border: 1px solid #d6ab21;
  border-radius: 8px;
  background: linear-gradient(110deg, #ffd125, #ffe06d 56%, #f5bb16);
  color: #16140b;
  box-shadow: 0 5px 20px rgba(160, 112, 0, .13);
  font: 800 13px/1.4 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ts-login .stack button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(160, 112, 0, .23);
}
.ts-login .stack button:active { transform: translateY(0); }
.ts-login-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 17px 0;
  border-top: 1px solid var(--pp-line, #e0e3e8);
  border-bottom: 1px solid var(--pp-line, #e0e3e8);
  color: var(--pp-muted, #626b75);
  font-size: 11px;
  text-align: center;
}
.ts-login-security svg { width: 16px; height: 16px; flex: none; color: var(--pp-accent, #94670e); }
.ts-login-help {
  margin: 20px 0 0;
  color: var(--pp-muted, #626b75);
  font-size: 12px;
  text-align: center;
}
.ts-login-help a {
  color: var(--pp-accent, #94670e);
  font-weight: 700;
}
.ts-login-help a:hover { text-decoration: underline; }
.ts-login-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--pp-line, #e0e3e8);
  color: var(--pp-muted, #626b75);
  font-size: 10px;
  letter-spacing: .04em;
}
.ts-auth-notice {
  margin: 0 0 22px;
  padding: 12px 15px;
  border: 1px solid var(--pp-danger, #b3261e);
  border-radius: 8px;
  background: var(--pp-danger-bg, #fff0ed);
  color: var(--pp-danger, #b3261e);
  font-size: 13px;
  line-height: 1.6;
}
.ts-login-skip {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100;
  padding: 11px 18px;
  border: 2px solid var(--pp-accent, #94670e);
  border-radius: 7px;
  background: var(--pp-surface, #fff);
  color: var(--pp-text, #141b23);
}
.ts-login-skip:focus { top: 12px; }
.ts-brand-name { font-size: 28px; color: var(--pp-accent, #94670e); font-weight: 800; }

@media (max-width: 1120px) {
  .ts-login-layout { grid-template-columns: minmax(0, .9fr) minmax(400px, 1fr); }
  .ts-login-story { padding-inline: 7%; }
  .ts-login-story-copy h1 { font-size: clamp(36px, 4vw, 52px); }
  .ts-login-image-note { left: 7%; }
  .ts-login-panel { padding-inline: clamp(24px, 5vw, 65px); }
}
@media (max-width: 760px) {
  .ts-login-layout { grid-template-columns: minmax(0, 1fr); }
  .ts-login-story {
    min-height: 285px;
    padding: 22px 6% 20px;
    background-position: center 55%;
  }
  .ts-login-story::before { background: linear-gradient(90deg, rgba(6, 13, 20, .96), rgba(6, 13, 20, .64)); }
  .ts-login-logo { width: 178px; }
  .ts-login-logo img { max-height: 68px; }
  .ts-login-story-copy { margin: 18px 0 0; padding: 12px 0 10px; }
  .ts-login-story-copy h1 { font-size: clamp(27px, 7.5vw, 36px); }
  .ts-login-story-copy h1 br:nth-of-type(2) { display: none; }
  .ts-login-story .ts-login-eyebrow { font-size: 9px; margin-bottom: 8px; }
  .ts-login-story-copy > p:not(.ts-login-eyebrow),
  .ts-login-story-line, .ts-login-image-note { display: none; }
  .ts-login-panel { padding: 22px 6% 26px; }
  .ts-login-toolbar { font-size: 11px; }
  .ts-login-content { max-width: 430px; padding: 38px 0 48px; }
  .ts-login-content h2 { font-size: 36px; }
  .ts-login-emblem { margin-bottom: 22px; width: 43px; height: 43px; }
  .ts-login-footer { padding-top: 16px; }
  .ts-workspace .ts-workspace-brand img { width: 150px; }
}
@media (max-width: 420px) {
  .ts-login-panel { padding-inline: 19px; }
  .ts-login-story { padding-inline: 19px; }
  .ts-login-content h2 { font-size: 32px; }
  .ts-login-footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-workspace *, .ts-workspace *::before, .ts-workspace *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
