:root {
  color-scheme: light;
  --dt-login-ink: #15110e;
  --dt-login-muted: #62584d;
  --dt-login-red: #951d1b;
  --dt-login-paper: #eee3ce;
  --dt-login-line: rgba(38, 29, 20, .46);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.dt-login-page {
  margin: 0;
  min-height: 100vh;
  color: var(--dt-login-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, rgba(126, 26, 25, .26), transparent 32rem),
    linear-gradient(145deg, #140e0b 0%, #211510 46%, #0e0b09 100%);
}

.dt-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px) 18px;
}

.dt-login-card {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  padding: clamp(24px, 4.4vw, 38px);
  border: 1px solid rgba(40, 29, 19, .72);
  border-radius: 14px 9px 14px 10px;
  background:
    linear-gradient(90deg, rgba(115, 24, 22, .08), transparent 7%, transparent 92%, rgba(115, 24, 22, .06)),
    repeating-linear-gradient(0deg, rgba(31, 23, 17, .025) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 16% 18%, rgba(255,255,255,.75), transparent 33%),
    radial-gradient(circle at 86% 88%, rgba(103, 75, 46, .18), transparent 30%),
    var(--dt-login-paper);
  box-shadow: 0 22px 56px rgba(0,0,0,.48), 0 2px 0 rgba(255,255,255,.34) inset;
}

.dt-login-card::before,
.dt-login-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .52;
}

.dt-login-card::before {
  inset: 9px;
  border: 1px solid rgba(70, 51, 32, .24);
  border-radius: 9px 6px 10px 7px;
}

.dt-login-card::after {
  width: 118px;
  height: 118px;
  right: -31px;
  bottom: -34px;
  border: 2px solid rgba(135, 24, 23, .13);
  border-radius: 50%;
}

.dt-login-card__topline {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #8d1d1b 0 22%, #c2b28d 22% 24%, #8d1d1b 24% 100%);
}

.dt-login-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dt-login-card__eyebrow {
  margin: 0 0 8px;
  color: var(--dt-login-red);
  font-size: clamp(10px, 1.35vw, 11px);
  font-weight: 800;
  letter-spacing: .12em;
}

.dt-login-card h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 62px);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.dt-login-card__underline {
  display: block;
  width: clamp(120px, 25vw, 148px);
  height: 4px;
  margin-top: 11px;
  background: linear-gradient(90deg, transparent 0 3%, var(--dt-login-red) 3% 94%, transparent 94%);
  transform: rotate(-1.5deg);
}

.dt-login-card__seal {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px min-content;
  align-items: center;
  gap: 8px;
  color: #2b221b;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: right;
}

.dt-login-card__seal img {
  width: 44px;
  height: 44px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid rgba(149, 29, 27, .72);
  background: rgba(245, 238, 222, .66);
}

.dt-login-card__seal span { color: var(--dt-login-red); }

.dt-login-card__lead {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 22px 0 18px;
  color: #3e352d;
  font-size: clamp(17px, 2.3vw, 21px);
  line-height: 1.36;
}

.dt-login-card__notice {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  padding: 10px 12px;
  border-left: 4px solid var(--dt-login-red);
  color: #5c1412;
  background: rgba(151, 29, 27, .11);
  font-size: 13px;
  font-weight: 700;
}

.dt-login-form { position: relative; z-index: 1; display: grid; gap: 12px; }

.dt-login-form label { display: grid; gap: 5px; }
.dt-login-form label > span:first-child {
  color: #40372f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.dt-login-form input {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--dt-login-line);
  border-radius: 3px;
  outline: none;
  color: var(--dt-login-ink);
  background: rgba(255,255,255,.28);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset;
  font: 700 clamp(18px, 3.5vw, 22px)/1.2 "Arial Narrow", Arial, sans-serif;
}

.dt-login-form input:focus {
  border-color: var(--dt-login-red);
  box-shadow: 0 0 0 3px rgba(149,29,27,.13);
}

.dt-login-password-field { position: relative; display: block; }
.dt-login-password-field input { padding-right: 52px; }

.dt-login-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--dt-login-red);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.dt-login-password-toggle__icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.dt-login-password-toggle__slash { transition: opacity .16s ease; }
.dt-login-password-toggle.is-visible .dt-login-password-toggle__slash { opacity: 0; }

.dt-login-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
}

.dt-login-form__hint {
  color: #5f554b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.dt-login-form__hint::before { content: "›"; margin-right: 7px; color: var(--dt-login-red); font-size: 21px; vertical-align: -2px; }

.dt-login-form__submit {
  min-width: 124px;
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid #6f1816;
  color: #fff7e9;
  background: linear-gradient(135deg, #a72b26, #871715);
  box-shadow: 0 2px 0 rgba(255,255,255,.25) inset, 0 4px 9px rgba(76, 14, 13, .22);
  font: 900 19px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.dt-login-form__submit:hover { background: linear-gradient(135deg, #b83530, #951d1b); }
.dt-login-form__submit:disabled { cursor: wait; opacity: .72; }
.dt-login-form[aria-busy="true"] input { opacity: .78; }
.dt-login-form__submit:focus-visible, .dt-login-password-toggle:focus-visible { outline: 3px solid #132a23; outline-offset: 3px; }

.dt-login-card__privacy {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 15px 0 0;
  color: var(--dt-login-muted);
  font-size: 12px;
  line-height: 1.36;
}

@media (max-width: 540px) {
  .dt-login-shell { align-items: start; padding: 16px 12px 20px; }
  .dt-login-card { padding: 22px 20px 20px; border-radius: 12px 8px 12px 8px; }
  .dt-login-card__header { gap: 12px; }
  .dt-login-card__seal { grid-template-columns: 40px; gap: 0; }
  .dt-login-card__seal span { display: none; }
  .dt-login-card__seal img { width: 40px; height: 40px; }
  .dt-login-card__eyebrow { max-width: 225px; font-size: 9.5px; }
  .dt-login-card__lead { margin: 20px 0 16px; }
  .dt-login-form__footer { align-items: stretch; flex-direction: column-reverse; gap: 11px; }
  .dt-login-form__submit { width: 100%; }
  .dt-login-form__hint { padding-left: 1px; }
  .dt-login-card__privacy { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Build Week recording viewport: keep the operator card complete at 1366×768. */
@media (min-width: 800px) and (max-height: 820px) {
  .dt-login-shell { padding: 18px; }
  .dt-login-card { width: min(100%, 520px); padding: 27px 30px 25px; }
  .dt-login-card h1 { font-size: clamp(44px, 5vw, 52px); }
  .dt-login-card__lead { margin: 17px 0 14px; font-size: 18px; }
  .dt-login-form { gap: 9px; }
  .dt-login-form input { min-height: 48px; font-size: 19px; }
  .dt-login-form__submit { min-height: 48px; }
  .dt-login-card__privacy { margin-top: 11px; }
}
