﻿[data-auth-theme="5cannax"] {
  --auth-bg: #f5efe4;
  --auth-panel: #fffaf0;
  --auth-panel-strong: #fff8e8;
  --auth-primary: #23576a;
  --auth-primary-strong: #143540;
  --auth-text: #24201c;
  --auth-muted: #6d6258;
  --auth-border: #d8c7ad;
  --auth-danger: #a33a2f;
  --auth-radius: 8px;
  --auth-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-text);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  font-family: var(--auth-font);
}

.auth-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 250, 240, .96);
  border-bottom: 1px solid var(--auth-border);
}

.auth-brand {
  color: var(--auth-text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-submit-top,
.auth-form button {
  border: 1px solid var(--auth-primary-strong);
  background: var(--auth-primary);
  color: #fff;
  border-radius: var(--auth-radius);
  min-height: 38px;
  padding: 8px 12px;
  font: 700 .92rem/1 var(--auth-font);
  cursor: pointer;
}

.auth-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 7vw, 82px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: clamp(24px, 6vw, 68px);
  align-items: center;
}

.auth-copy h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 14px 0 0;
  max-width: 540px;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.auth-card {
  width: 100%;
  background: var(--auth-panel);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  padding: 30px 26px;
  box-shadow: 0 16px 42px rgba(67, 48, 30, .16);
}

.auth-logo {
  margin: 0 0 4px;
  color: var(--auth-primary);
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--auth-muted);
  text-align: center;
  font-size: .92rem;
}

.auth-form[hidden],
.auth-error[hidden] { display: none !important; }

.auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-field label {
  color: var(--auth-muted);
  font-size: .84rem;
}

.auth-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  background: var(--auth-panel-strong);
  color: var(--auth-text);
  padding: 8px 10px;
  font: inherit;
  outline: none;
}

.auth-field input:focus { border-color: var(--auth-primary); }

.auth-error {
  margin: 0 0 12px;
  color: var(--auth-danger);
  font-size: .86rem;
}

.auth-form button { width: 100%; }

.auth-toggle {
  margin-top: 16px;
  color: var(--auth-muted);
  text-align: center;
  font-size: .9rem;
}

.auth-toggle button {
  border: 0;
  background: none;
  color: var(--auth-primary);
  padding: 0 0 0 4px;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 820px) {
  .auth-layout { grid-template-columns: 1fr; align-items: start; }
  .auth-topbar { align-items: start; flex-direction: column; }
}
