/* PyCraft blog — shared styles */
:root {
  --ink: #0c1218;
  --ink-2: #141c24;
  --panel: #1a2430;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8eef3;
  --muted: #8fa0ad;
  --accent: #2ec4b6;
  --accent-2: #f4a261;
  --accent-deep: #1a9a8c;
  --danger: #e85d5d;
  --radius: 1.1rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --max: 72rem;
  --prose: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(46, 196, 182, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(244, 162, 97, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1016 0%, var(--ink) 40%, #0e1620 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: #5ee0d2; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 16, 22, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 2rem; height: 2rem; border-radius: 0.45rem;
  object-fit: cover;
}
.site-nav {
  display: flex; align-items: center; gap: 0.35rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.site-nav a.on { color: #fff; background: rgba(46,196,182,0.16); }
.site-nav a.nav-login {
  color: var(--ink);
  background: linear-gradient(180deg, #4fd8ca, var(--accent));
  box-shadow: 0 3px 0 var(--accent-deep);
}
.site-nav a.nav-login:hover { color: var(--ink); filter: brightness(1.05); }

.lang-switch {
  position: relative;
  margin-left: 0.25rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-btn .flag { font-size: 1.05rem; line-height: 1; }
.lang-btn .chev { opacity: 0.7; font-size: 0.7rem; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #141c24;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  z-index: 50;
}
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.lang-menu li:hover { background: rgba(46,196,182,0.14); }
.lang-menu li[aria-selected="true"] {
  background: rgba(46,196,182,0.2);
  color: #fff;
}
.lang-menu .flag { font-size: 1.1rem; }
.lang-menu .name { flex: 1; }
.lang-menu .code {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: end;
  min-height: min(72vh, 36rem);
}
.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
}
.hero-copy p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 32rem;
  font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: inherit; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; text-decoration: none;
}
.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #4fd8ca, var(--accent));
  box-shadow: 0 4px 0 var(--accent-deep);
}
.btn-primary:hover { filter: brightness(1.05); color: var(--ink); }
.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.hero-visual {
  position: relative;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  min-height: 16rem;
  background: var(--panel);
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: contain; min-height: 16rem;
  aspect-ratio: 16 / 10;
  background: #0b1116;
}
.hero-visual .badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  left: auto;
  bottom: auto;
  z-index: 2;
  max-width: calc(100% - 1.7rem);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 18, 24, 0.9);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem 4rem;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); font-weight: 600; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.25rem;
}
.post-card {
  display: flex; flex-direction: column;
  background: rgba(26, 36, 48, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46,196,182,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  color: inherit;
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: #0b1116;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.post-card:hover .thumb img { transform: scale(1.02); }
.post-card .body { padding: 1.05rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.lang-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 0.65rem;
}
.lang-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 0.45rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.lang-chip img {
  width: 1rem; height: 1rem;
  object-fit: contain;
  border-radius: 0.2rem;
}
.lang-chip.lang-py {
  color: #ffe566;
  background: rgba(55, 118, 171, 0.28);
  border-color: rgba(55, 118, 171, 0.55);
}
.lang-chip.lang-js {
  color: #1a1a1a;
  background: rgba(247, 223, 30, 0.92);
  border-color: rgba(200, 170, 0, 0.65);
}
.post-card .meta {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.45rem;
}
.article-wrap .lang-chips { margin: 0 0 0.75rem; }

.article-feedback {
  margin: 2rem 0 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(46,196,182,0.1), rgba(20,28,36,0.55));
  border: 1px solid rgba(46,196,182,0.28);
  text-align: center;
}
.article-feedback .af-q {
  margin: 0 0 0.85rem;
  font-weight: 750;
  font-size: 1.05rem;
  color: #f0f6fa;
}
.article-feedback .af-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  justify-content: center;
}
.article-feedback .af-btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 800;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--line);
  background: rgba(12, 18, 24, 0.7);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.article-feedback .af-btn:hover {
  transform: translateY(-1px);
}
.article-feedback .af-btn.af-up:hover {
  border-color: rgba(88,204,2,0.65);
  background: rgba(88,204,2,0.14);
}
.article-feedback .af-btn.af-down:hover {
  border-color: rgba(232,93,93,0.6);
  background: rgba(232,93,93,0.12);
}
.article-feedback .af-ico { font-size: 1.15rem; line-height: 1; }
.article-feedback .af-thanks {
  margin: 0.35rem 0 0;
  font-weight: 750;
  color: #9ff0e6;
}
.article-feedback.is-done .af-actions { display: none; }

.article-share {
  margin: 2rem 0 0;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: rgba(20, 32, 42, 0.7);
  border: 1px solid var(--line);
}
.article-share .as-title {
  margin: 0 0 0.75rem;
  font-weight: 750;
  color: #f0f6fa;
}
.article-share .as-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.share-btn {
  appearance: none; cursor: pointer; font: inherit; font-weight: 800;
  padding: 0.55rem 0.85rem; border-radius: 0.65rem;
  border: 1.5px solid var(--line);
  background: rgba(12, 18, 24, 0.75);
  color: var(--text);
}
.share-btn:hover { border-color: rgba(46,196,182,0.55); }
.share-btn.share-copy {
  background: rgba(46,196,182,0.16);
  border-color: rgba(46,196,182,0.4);
  color: #9ff0e6;
}
.share-btn.share-wa {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.4);
}
.article-share .as-note {
  margin: 0.65rem 0 0;
  font-weight: 700;
  color: #9ff0e6;
  font-size: 0.9rem;
}

.article-badges {
  margin: 1.75rem 0 0.5rem;
}
.article-badges h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.skill-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}
.skill-badge {
  padding: 0.9rem 0.85rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--line);
  background: rgba(12, 18, 24, 0.55);
  opacity: 0.55;
  filter: grayscale(0.35);
}
.skill-badge.got {
  opacity: 1;
  filter: none;
  border-color: color-mix(in srgb, var(--sb, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--sb, var(--accent)) 14%, rgba(12,18,24,0.7));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sb, var(--accent)) 25%, transparent);
}
.skill-badge .sb-ico {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.skill-badge b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.skill-badge small {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.8rem;
  line-height: 1.35;
}

.badge-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  width: min(92vw, 360px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.badge-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.badge-toast .bt-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #121c24;
  border: 1.5px solid color-mix(in srgb, var(--bt, #2ec4b6) 50%, transparent);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}
.badge-toast .bt-ico {
  width: 2.6rem; height: 2.6rem;
  border-radius: 0.75rem;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--bt, #2ec4b6) 22%, #0a1016);
  flex-shrink: 0;
}
.badge-toast .bt-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--bt, #2ec4b6) 85%, #fff);
  margin-bottom: 0.15rem;
}
.badge-toast b {
  display: block;
  font-size: 0.98rem;
}
.badge-toast small {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.8rem;
}
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.post-card .excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.post-card .card-points {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  flex: 1;
}
.post-card .card-points li { margin-bottom: 0.25rem; }
.post-card .card-points code {
  font-family: var(--font-mono);
  color: #9ff0e6;
  font-weight: 700;
}
.post-card .more {
  margin-top: 0.9rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-2);
}
.post-card .practice-cta {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffe566;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-card .practice-cta:hover { color: #fff; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Article */
.article-wrap {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
.article-wrap .crumbs {
  font-size: 0.88rem; font-weight: 700; color: var(--muted);
  margin-bottom: 1.25rem;
}
.article-wrap .crumbs a { color: var(--muted); text-decoration: none; }
.article-wrap .crumbs a:hover { color: var(--accent); }
.article-hero-img {
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 1.75rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}
.article-hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
  background: #0b1116;
}
.article-wrap .meta {
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.65rem;
}
.article-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
}
.article-wrap .lead {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 1.75rem;
}
.article-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.article-wrap p { margin: 0 0 1.1rem; }
.article-wrap ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.article-wrap li { margin-bottom: 0.35rem; }
.article-wrap code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(46,196,182,0.12);
  border: 1px solid rgba(46,196,182,0.22);
  border-radius: 0.35rem;
  padding: 0.1em 0.35em;
  color: #9ff0e6;
}
.article-wrap pre {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: #0b1116;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #dce8ef;
}
.article-wrap pre code {
  background: none; border: none; padding: 0; color: inherit;
}
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.28);
  color: #ffd7b0;
  font-weight: 650;
}

/* Interactive quiz in articles */
.quiz {
  margin: 2.25rem 0 1.5rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(46,196,182,0.08), rgba(20,28,36,0.55));
  border: 1px solid rgba(46,196,182,0.28);
}
.quiz h2 {
  margin-top: 0;
}
.quiz-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.quiz-item {
  margin: 0 0 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.quiz-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}
.quiz-q {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: #f0f6fa;
}
.quiz-num {
  color: var(--accent);
  font-family: var(--font-mono);
}
.quiz-item pre {
  margin-bottom: 0.85rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quiz-opt {
  appearance: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(12, 18, 24, 0.65);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.quiz-opt:hover:not(:disabled) {
  border-color: rgba(46,196,182,0.55);
  background: rgba(46,196,182,0.1);
  transform: translateX(2px);
}
.quiz-opt:disabled {
  cursor: default;
  opacity: 0.92;
}
.quiz-opt.is-correct {
  border-color: rgba(46,196,182,0.75);
  background: rgba(46,196,182,0.18);
  color: #9ff0e6;
}
.quiz-opt.is-wrong {
  border-color: rgba(232,93,93,0.65);
  background: rgba(232,93,93,0.14);
  color: #ffc4c4;
}
.quiz-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}
.quiz-feedback.is-correct { color: #9ff0e6; }
.quiz-feedback.is-wrong { color: #ffc4c4; }
.quiz-score {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-weight: 750;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  background: rgba(46,196,182,0.16);
  border: 1px solid rgba(46,196,182,0.35);
  text-align: center;
}

/* Auth / login */
.auth-page {
  max-width: 26rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.auth-page .brand-block {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-page .brand-block .logo {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.85rem;
  margin: 0 auto 0.85rem;
  object-fit: cover;
}
.auth-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.auth-page .lead {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
  border: 1px solid var(--line);
  margin: 1.5rem 0 1rem;
}
.auth-tabs button {
  border: none; background: transparent;
  color: var(--muted); font-family: inherit;
  font-weight: 800; padding: 0.6rem;
  border-radius: 999px; cursor: pointer;
}
.auth-tabs button.on {
  background: rgba(46,196,182,0.2);
  color: #fff;
}
.auth-card {
  background: rgba(26,36,48,0.85);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.25rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--line);
  background: #0b1116;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  outline: none;
}
.field input:focus { border-color: var(--accent); }
.auth-error {
  min-height: 1.25rem;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}
.auth-card .btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: 0.85rem;
}
.auth-note {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero-visual { order: -1; }
  .hero-visual .badge {
    top: 0.7rem;
    right: 0.7rem;
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }
}
