/* =====================================================================
   Екрани входу / реєстрації / відновлення
   ===================================================================== */
.auth-body { min-height: 100vh; min-height: 100dvh; background: #9fdc7c; }

.auth-wrap {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-t)) 16px calc(28px + var(--safe-b));
  gap: 18px;
}

/* ---------- Логотип ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; animation: pop-in .6s var(--ease-pop) both; }
.brand-badge {
  display: grid; place-items: center; width: 54px; height: 54px; font-size: 30px;
  border-radius: 18px; background: linear-gradient(180deg, #fff6c8, #ffd04a);
  box-shadow: 0 4px 0 #c9780a, 0 10px 20px rgba(0,0,0,.18), inset 0 2px 0 #fff;
  transform: rotate(-6deg);
}
.brand-text {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: .03em; color: #fff;
  -webkit-text-stroke: 1.5px #2b7d22;
  text-shadow: 0 3px 0 #2b7d22, 0 6px 14px rgba(0,0,0,.25);
}
.brand-text b { color: #ffe066; -webkit-text-stroke-color: #a65d00; text-shadow: 0 3px 0 #a65d00, 0 6px 14px rgba(0,0,0,.25); }

/* ---------- Картка-панель (папір + дерев'яна рамка) ---------- */
.card {
  position: relative; width: min(100%, 420px);
  padding: 34px 22px 22px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--cream), var(--cream-2));
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px #d39a5a, 0 8px 0 4px #a8713f, var(--shadow-2);
  animation: pop-in .5s .08s var(--ease-pop) both;
}
.card-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.card-ribbon {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  padding: 7px 22px; white-space: nowrap;
  border-radius: 14px; background: linear-gradient(180deg, #8ee05c, #45b336);
  box-shadow: 0 4px 0 #2b7d22, 0 8px 14px rgba(0,0,0,.18);
  font-family: var(--font-display); font-weight: 700; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.card-title { margin: 0 0 14px; text-align: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: #6b3b1a; }
.card-text { margin: 0 0 14px; text-align: center; color: var(--ink-soft); }
.card-foot { margin: 18px 0 0; text-align: center; color: var(--ink-soft); }

@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* ---------- Стартовий подарунок ---------- */
.perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; padding: 0; list-style: none; }
.perks li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 2px solid var(--paper-edge); font-size: .9rem; color: #6b3b1a;
}

.form-row-end { display: flex; justify-content: flex-end; margin-top: -6px; }
.link { color: #2f7fc0; text-decoration: none; font-weight: 800; }
.link:hover { text-decoration: underline; }
.link-strong { color: #2b7d22; }

.alert { padding: 12px 14px; border-radius: var(--r-sm); font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.alert-ok { background: #e6f8dc; color: #2b6d1f; border: 2px solid #b6e3a1; }
.alert-err { background: #ffe9e5; color: #a42a20; border: 2px solid #f6b9ae; }

.noscript { position: relative; z-index: 1; background: #fff; padding: 10px 14px; border-radius: 12px; }

@media (min-width: 768px) {
  .card { padding: 40px 34px 28px; }
  .brand-text { font-size: 2.4rem; }
}
@media (max-width: 359px) {
  .card { padding: 30px 16px 18px; }
  .brand-text { font-size: 1.6rem; }
}

/* ---------- Установник ---------- */
.install { max-width: 520px; }
.inst-h { margin: 18px 0 8px; font-family: var(--font-display); font-size: 1.15rem; color: #6b3b1a; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.checks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #f3fbef; }
.checks li.bad { background: #ffeeea; }
.checks small { flex-basis: 100%; color: #a42a20; font-weight: 700; }
.inst-more summary { cursor: pointer; color: var(--ink-soft); font-weight: 800; margin: 4px 0 8px; }
.install .btn[disabled] { opacity: .5; }
.brand-badge img { width: 78%; height: 78%; object-fit: contain; }
