html[data-skin="lux"] body.tc-auth {
  --auth-bg: #faf7ef;
  --auth-card: #fffefa;
  --auth-input: #faf7ef;
  --auth-ink: #262019;
  --auth-muted: #5d554a;
  --auth-line: #e3d8c4;
  --auth-link: #795016;
  --auth-focus: #946226;
  --auth-glow: #e9cc9166;
  --auth-shadow: 0 12px 30px #5c421714;
  background: var(--auth-bg);
  color: var(--auth-ink);
  min-height: 100vh;
  color-scheme: light;
}
html[data-skin="lux"][data-theme="dark"] body.tc-auth {
  --auth-bg: #151310;
  --auth-card: #211d18;
  --auth-input: #191612;
  --auth-ink: #faf3e8;
  --auth-muted: #cbbfb0;
  --auth-line: #504436;
  --auth-link: #edce97;
  --auth-focus: #f1ca81;
  --auth-glow: #b68a463b;
  --auth-shadow: 0 12px 30px #0004;
  color-scheme: dark;
}
.tc-auth a { color: var(--auth-link); }
.tc-auth a:hover { text-decoration: underline; }
.tc-auth :is(a, button, input):focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 3px;
}
.tc-auth-header {
  width: min(1160px, calc(100% - 44px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.tc-auth-header { min-height: 76px; border-bottom: 1px solid var(--auth-line); }
.tc-auth-header .logo { color: var(--auth-ink); margin-right: auto; }
.tc-auth-header .logo img { max-height: 43px; }
.tc-auth-header .logo-text { color: var(--auth-ink) !important; }
.tc-auth-nav, .tc-auth-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 24px);
}
.tc-auth-controls { flex-wrap: nowrap; gap: 8px; }
.tc-auth-theme {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--auth-line);
  background: var(--auth-card);
  color: var(--auth-ink);
  cursor: pointer;
}
.tc-auth-theme svg { width: 18px; height: 18px; }
.tc-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  grid-template-areas: "feature panel";
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  width: min(1160px, calc(100% - 44px));
  margin: clamp(24px, 4vw, 48px) auto;
}
.tc-auth-register { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.tc-auth-feature {
  grid-area: feature;
  padding: clamp(12px, 2.7vw, 32px);
  border-radius: 24px;
  background: radial-gradient(ellipse at 90% 5%, var(--auth-glow), transparent 50%),
              radial-gradient(ellipse at 8% 95%, var(--auth-glow), transparent 42%);
}
.tc-auth-feature h2, .tc-auth-panel h1 {
  color: var(--auth-ink);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0 0 10px;
  font-weight: 800;
}
.tc-auth-feature h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.tc-auth-feature h2 span { color: var(--auth-link); }
.tc-auth-feature p { margin: 0 0 22px; color: var(--auth-muted); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.tc-auth-feature ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tc-auth-feature li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  background: var(--auth-card);
  font-size: .82rem;
  font-weight: 700;
}
.tc-auth-feature li svg { width: 17px; height: 17px; color: var(--auth-link); }
.tc-auth-panel {
  grid-area: panel;
  min-width: 0;
  padding: clamp(20px, 3.3vw, 40px);
  border: 1px solid var(--auth-line);
  border-radius: 22px;
  background: var(--auth-card);
  box-shadow: var(--auth-shadow);
}
.tc-auth-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  background: var(--auth-glow);
  color: var(--auth-link);
  border: 1px solid var(--auth-line);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 750;
  text-transform: uppercase;
}
.tc-auth-panel h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.tc-auth-intro { margin: 0 0 20px; color: var(--auth-muted); }
.tc-auth-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.tc-auth-full { grid-column: 1 / -1; }
.tc-auth-panel label { color: var(--auth-ink); }
.tc-auth-panel .field { margin-bottom: 12px; }
.tc-auth-panel .field input {
  background: var(--auth-input);
  color: var(--auth-ink);
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  min-height: 44px;
  font-size: 1rem;
}
.tc-auth-panel .field input::placeholder { color: var(--auth-muted); opacity: 1; }
.tc-auth-panel :is(.hint, .pw-toggle) { color: var(--auth-muted); }
.tc-auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 10px; font-size: .88rem; }
.tc-auth-check input { width: 17px; height: 17px; flex-shrink: 0; margin: 2px 0 0; accent-color: #d6b16e; }
.tc-auth-forgot { margin: 0 0 18px; text-align: right; font-size: .9rem; }
.tc-auth-panel a { font-weight: 750; }
.tc-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(110deg, #f1dba8, #d7b373);
  color: #23190c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tc-auth-submit:hover { filter: brightness(1.05); }
.tc-auth-submit svg { width: 20px; height: 20px; }
.tc-auth-panel .tc-auth-switch, .tc-auth-panel .tc-auth-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: .9rem;
  color: var(--auth-muted);
}
.tc-auth-note svg { width: 14px; height: 14px; vertical-align: -.15em; color: var(--auth-link); }
.tc-auth-register .tc-auth-switch { border-top: 1px solid var(--auth-line); padding-top: 13px; }
@media (max-width: 760px) {
  .tc-auth-header, .tc-auth-shell { width: min(540px, calc(100% - 28px)); }
  .tc-auth-header { min-height: 64px; gap: 8px; }
  .tc-auth-nav { display: none; }
  .tc-auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "panel" "feature"; margin-block: 16px; }
  .tc-auth-feature { display: none; }
  .tc-auth-shell { grid-template-areas: "panel"; }
  .tc-auth-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .tc-auth-header, .tc-auth-shell { width: calc(100% - 28px); }
  .tc-auth-header .logo { flex: 1; min-width: 0; }
  .tc-auth-header .logo img { max-height: 34px; }
  .tc-auth-theme { width: 44px; height: 44px; }
  .tc-auth-shell { margin-block: 14px 20px; }
  .tc-auth-panel { padding: clamp(14px, 4.5vw, 22px); border-radius: 17px; }
  .tc-auth-panel h1 { font-size: clamp(1.55rem, 6vw, 2rem); line-height: 1.15; }
  .tc-auth-intro { font-size: .9rem; margin-bottom: 14px; }
  .tc-auth-panel .field { margin-bottom: 10px; }
  .tc-auth-panel .field input { min-height: 44px; font-size: 16px; }
  .tc-auth-panel .hint { font-size: .78rem; }
  .tc-auth-check { min-height: 32px; line-height: 1.4; }
  .tc-auth-submit { min-height: 46px; }
}
