/* ============================================================
   Журнал — модалка входа (AuthModal)
   ============================================================ */
.au-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.4rem;
  background: oklch(0.235 0.012 60 / 0.42);
  backdrop-filter: blur(3px);
  animation: au-fade 0.18s var(--ease);
}
@keyframes au-fade { from { opacity: 0; } to { opacity: 1; } }

.au-card {
  position: relative;
  width: 100%; max-width: 26rem;
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 24px 60px oklch(0.235 0.012 60 / 0.22);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  animation: au-rise 0.22s var(--ease);
}
@keyframes au-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.au-close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 1.9rem; height: 1.9rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--ink-faint); transition: color 0.2s var(--ease);
}
.au-close:hover { color: var(--ink); }
.au-close svg { width: 1.1rem; height: 1.1rem; }

.au-kick {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.5rem;
}
.au-title {
  font-family: var(--serif); font-weight: 600;
  font-size: var(--t-h2); color: var(--ink); line-height: 1.05;
  margin: 0 0 0.4rem;
}
.au-dek {
  font-family: var(--grotesk); font-size: var(--t-small);
  color: var(--ink-soft); line-height: 1.5; margin: 0 0 1.3rem;
}

.au-fields { display: flex; flex-direction: column; gap: 0.85rem; }
.au-lab { display: flex; flex-direction: column; gap: 0.35rem; }
.au-lab > span {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.au-field {
  font-family: var(--grotesk); font-size: var(--t-body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 0.62rem 0.75rem; width: 100%;
  transition: border-color 0.2s var(--ease);
}
.au-field:focus { outline: none; border-color: var(--accent); }

/* поле пароля с кнопкой-глазом */
.au-passwrap { position: relative; display: flex; align-items: center; }
.au-passwrap .au-field { padding-right: 2.6rem; }
.au-eye {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--ink-faint); transition: color 0.2s var(--ease);
}
.au-eye:hover { color: var(--ink); }
.au-eye svg { width: 1.15rem; height: 1.15rem; }

/* код подтверждения */
.au-code {
  font-family: var(--mono); letter-spacing: 0.5em; text-align: center;
  font-size: var(--t-h3, 1.25rem); padding-left: 1rem;
}

/* согласие с Офертой */
.au-oferta {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-family: var(--grotesk); font-size: var(--t-small); color: var(--ink-soft);
  line-height: 1.4; cursor: pointer; user-select: none;
}
.au-check {
  flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.1rem;
  accent-color: var(--accent); cursor: pointer;
}
.au-oferta__txt { min-width: 0; }
.au-link {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--accent-deep); text-decoration: underline;
}
.au-link:hover { color: var(--accent); }

.au-err {
  font-family: var(--grotesk); font-size: var(--t-small);
  color: var(--accent-deep); min-height: 1.1rem;
  margin: 0.7rem 0 0;
}
.au-err:empty { margin: 0; min-height: 0; }

.au-submit {
  margin-top: 1.1rem; width: 100%;
  font-family: var(--mono); font-size: var(--t-small);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-raise); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 3px;
  padding: 0.72rem 1rem; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.au-submit:hover { background: var(--accent-deep); }
.au-submit:disabled { opacity: 0.6; cursor: default; }

.au-foot {
  font-family: var(--grotesk); font-size: var(--t-small);
  color: var(--ink-faint); line-height: 1.5;
  margin: 1.1rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--line);
}
