
:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --text: #eef4ff;
  --muted: #aebbd0;
  --line: rgba(255,255,255,.13);
  --primary: #e31b23;
  --primary-deep: #9f1419;
  --accent: #d8dce3;
  --white: #fff;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(227,27,35,.22), transparent 28%), radial-gradient(circle at 75% 70%, rgba(216,220,227,.10), transparent 25%);
  z-index: -1;
  animation: auraDrift 18s ease-in-out infinite alternate;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,.85), transparent 72%);
  opacity: .24;
  z-index: -2;
  animation: gridDrift 24s linear infinite;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.login-card {
  width: min(520px, calc(100% - 34px));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}
.logo-link { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 14px; overflow: hidden; padding: 0; margin-bottom: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.10); }
.logo-link img { width: 218px; height: auto; display: block; border-radius: 14px; }
.logo-link.small { margin-bottom: 0; border-radius: 12px; }
.logo-link.small img { width: 174px; border-radius: 12px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .78rem; letter-spacing: .16em; font-weight: 800; margin-bottom: 14px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .96; letter-spacing: -.06em; }
.login-card p:not(.eyebrow) { color: var(--muted); margin-top: 18px; line-height: 1.6; }
form { display: grid; gap: 12px; margin-top: 28px; }
label { font-weight: 800; }
input[type='password'], input[type='search'] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7,17,31,.78);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}
input:focus { outline: 2px solid rgba(227,27,35,.50); border-color: transparent; }
button, .guide-card a {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  cursor: pointer;
}
.error { min-height: 1.2em; color: #ffb4b7 !important; font-weight: 700; margin-top: 0 !important; }
.small-note { font-size: .82rem; }
.resource-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); background: rgba(7,17,31,.78); border-bottom: 1px solid var(--line); }
.nav-row { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-weight: 800; }
nav a:hover { color: var(--white); }
nav button { padding: 10px 16px; }
.resource-hero { padding: 86px 0 46px; }
.resource-hero p:last-child { color: var(--muted); max-width: 720px; margin-top: 22px; font-size: 1.12rem; line-height: 1.65; }
.search-wrap { margin-top: 32px; max-width: 640px; }
.resource-hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; align-items: center; }
.resource-visual-panel { border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); box-shadow: var(--shadow); padding: 14px; }
.resource-graphic { width: 100%; height: auto; display: block; border-radius: 20px; }
.guide-section { padding: 26px 0 90px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.guide-meta { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; margin-bottom: 16px; }
.guide-card h3 { font-size: 1.28rem; line-height: 1.15; letter-spacing: -.03em; }
.guide-card p { color: var(--muted); margin-top: 14px; line-height: 1.55; }
.guide-card a { display: inline-flex; align-self: flex-start; margin-top: auto; }
.guide-card[hidden] { display: none; }
@media (max-width: 980px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .guide-grid { grid-template-columns: 1fr; } .login-card { padding: 26px; } .nav-row { height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; } }

@media (max-width: 900px) { .resource-hero-grid { grid-template-columns: 1fr; } }

.login-card, .resource-visual-panel, .guide-card, .logo-link, button, .guide-card a {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, filter .28s ease;
}
.login-card:hover, .resource-visual-panel:hover, .guide-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.logo-link:hover { transform: translateY(-3px); }
button:hover, .guide-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(227,27,35,.26);
}
.guide-card:hover { border-color: rgba(255,255,255,.22); }
.resource-visual-panel:hover .resource-graphic { filter: drop-shadow(0 14px 24px rgba(227,27,35,.12)); }
@keyframes auraDrift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(2%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}
@keyframes gridDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(64px, 32px, 0); }
}
