/* ── Auth layout ────────────────────────── */
.auth {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 24px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
}

.auth-head { margin-bottom: 28px; }
.auth-head h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.auth-head p { color: var(--dim); margin: 0; font-size: 15.5px; line-height: 1.55; }

/* ── Fields ─────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .15s ease;
}
.field input::placeholder { color: #6b7099; }
.field input:focus {
  outline: none;
  border-color: var(--cyan);
}
.field.invalid input { border-color: #ff6b6b; }

.field-error {
  color: #ff8585;
  font-size: 13px;
  min-height: 0;
  display: none;
}
.field.invalid .field-error,
.field-error.show { display: block; }

/* ── Password ───────────────────────────── */
.password-wrap { position: relative; display: flex; }
.password-wrap input { padding-right: 92px; }
.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
}

.pw-meter {
  height: 4px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}
.pw-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: #ff6b6b;
  transition: width .2s ease, background .2s ease;
}
.pw-meter.weak span { width: 33%; background: #ff6b6b; }
.pw-meter.medium span { width: 66%; background: var(--amber); }
.pw-meter.strong span { width: 100%; background: #4ddb8e; }

/* ── Checkbox ───────────────────────────── */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--dim);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input { margin-top: 2px; accent-color: var(--cyan); width: 16px; height: 16px; flex-shrink: 0; }
.checkbox a { color: var(--cyan); }

/* ── Buttons / status ───────────────────── */
.btn-block { width: 100%; text-align: center; border: none; font-size: 16px; margin-top: 4px; }
.btn-block:disabled { opacity: .6; cursor: default; filter: none; }

.auth-status {
  font-size: 14px;
  line-height: 1.5;
  display: none;
  padding: 12px 14px;
  border-radius: 9px;
}
.auth-status.show { display: block; }
.auth-status.ok { background: rgba(77, 219, 142, .12); color: #7fe3ab; border: 1px solid rgba(77, 219, 142, .3); }
.auth-status.err { background: rgba(255, 107, 107, .12); color: #ff9a9a; border: 1px solid rgba(255, 107, 107, .3); }

.auth-alt {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14.5px;
  text-align: center;
}
.auth-alt a { color: var(--cyan); font-weight: 500; }

/* ── Aside ──────────────────────────────── */
.auth-aside {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  align-items: center;
}
.aside-inner { width: 100%; }
.aside-list { list-style: none; padding: 0; margin: 18px 0 28px; display: flex; flex-direction: column; gap: 14px; }
.aside-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--text); }
.aside-list .check { color: var(--cyan); flex-shrink: 0; }
.aside-quote {
  border-left: 2px solid var(--cyan);
  padding-left: 16px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.6;
  font-style: italic;
}
.aside-quote-author { margin-top: 8px; font-style: normal; font-size: 13.5px; color: #7379a3; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { order: -1; }
}
