:root {
  --ink: #101820;
  --ink-soft: #2a3a48;
  --muted: #5f7182;
  --line: #cfd8e1;
  --paper: #eef2f5;
  --surface: rgba(255, 255, 255, 0.78);
  --accent: #0f7a62;
  --accent-2: #c45d2c;
  --accent-soft: #d8f0e8;
  --danger: #9a2f2f;
  --danger-soft: #f8e4e4;
  --ok: #0f7a62;
  --ok-soft: #d8f0e8;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.08);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(15, 122, 98, 0.18), transparent 60%),
    radial-gradient(700px 380px at 96% 4%, rgba(196, 93, 44, 0.14), transparent 55%),
    linear-gradient(165deg, #f4f7fa 0%, #e7eef4 48%, #edf1f4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 70%);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap {
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.wrap-wide { width: min(920px, calc(100% - 32px)); }

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  animation: rise 0.55s ease both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.nav-links a:hover { color: var(--accent); }

.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(207, 216, 225, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 30px;
  animation: rise 0.7s ease both;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 8px;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.field { margin-bottom: 14px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 98, 0.15);
}

.hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { background: #0c6551; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: #fff; color: var(--ink); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid #e2b4b4;
}

.btn-danger:hover { background: var(--danger-soft); }

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #e2b4b4;
}

.alert-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #b7dccc;
}

.meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}

.meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(207, 216, 225, 0.7);
  font-size: 0.94rem;
}

.meta-row dt { color: var(--muted); margin: 0; }
.meta-row dd { margin: 0; font-weight: 600; word-break: break-all; }

.foot {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .meta-row { grid-template-columns: 1fr; gap: 4px; }
  .card { padding: 22px 18px 24px; }
}
