/* fakenet Диск — вход, регистрация и суперпароль */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -10%, #dbeafe 0%, rgba(219, 234, 254, 0) 60%),
    radial-gradient(800px 500px at 100% 110%, #d7f5ee 0%, rgba(215, 245, 238, 0) 55%),
    var(--bg);
}
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -.2px;
}
.auth-brand .brand-mark { display: block; }
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px 32px 32px;
  box-shadow: 0 18px 50px rgba(32, 33, 36, .10), 0 2px 8px rgba(32, 33, 36, .05);
}
.auth-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.4px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.auth-sub {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}
.auth-sub b { color: var(--text); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .field > span { font-size: 12.5px; }
.auth-form .field input,
.auth-form .field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  outline: 0;
  font-size: 14px;
}
.auth-form .field input { height: 46px; padding: 0 13px; }
.auth-form .field textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.55;
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-size: 13px;
}
.auth-form .field input:focus,
.auth-form .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.auth-submit {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.auth-form .auth-submit { margin-top: 4px; }
.auth-sep { height: 1px; background: var(--border-soft); margin: 18px 0; }
.auth-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}
.auth-back:hover { text-decoration: underline; }
.auth-hint {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  margin: 14px 0 0;
}
.auth-error,
.auth-message {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.auth-error { background: var(--red-soft); color: #a50e0e; }
.auth-message { background: var(--green-soft); color: #0d652d; }
.auth-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}
.auth-note p { margin: 0 0 8px; }
.auth-note p:last-child { margin-bottom: 0; }
.auth-note code {
  background: var(--surface-2);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text-2);
}
.auth-warn { color: var(--amber); }
.auth-foot {
  margin-top: 22px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

/* ---------- seed phrase ---------- */
.seed-card {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 70%);
  border: 1px solid #cfe3fb;
  border-radius: 18px;
  padding: 22px;
  margin: 0 -6px;
}
.seed-eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.seed-card .auth-title { font-size: 24px; }
.seed-words {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 18px 0 20px;
  padding: 0;
}
.seed-words li {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
  min-width: 0;
}
.seed-num {
  flex: none;
  width: 20px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: right;
}
.seed-words b {
  font: 500 13px/1.2 "Cascadia Mono", Consolas, ui-monospace, monospace;
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seed-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seed-actions .btn { flex: 1; min-width: 130px; justify-content: center; }
.seed-warning {
  color: #7a4b00;
  background: var(--amber-soft);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.5;
  margin: 16px 0 0;
}

@media (max-width: 520px) {
  .auth-shell { padding: 20px 12px; justify-content: flex-start; }
  .auth-card { padding: 24px 20px; border-radius: 20px; }
  .auth-title { font-size: 23px; }
  .seed-card { margin: 0; padding: 16px; }
  .seed-words { grid-template-columns: 1fr; }
}

@media print {
  @page { margin: 16mm; }
  .auth-page { background: #fff; }
  .auth-shell { display: block; min-height: 0; padding: 0; }
  .auth-brand,
  .auth-foot,
  .auth-back,
  .auth-hint,
  .auth-sep,
  .seed-actions,
  .seed-warning,
  .auth-error,
  .auth-message { display: none !important; }
  .auth-card {
    width: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .seed-card {
    border: 1.5px solid #444;
    border-radius: 10px;
    background: #fff;
    padding: 22px;
    margin: 0;
  }
  .seed-words li { border-color: #bbb; break-inside: avoid; }
  .seed-words { grid-template-columns: 1fr 1fr; }
  .seed-warning { display: block !important; background: #fff; border: 1px solid #bbb; color: #333; }
}
