@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ededf5;
  color: #1a1040;
}

/* ── Top bar ── */
.topbar {
  background: #0d0d14;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand strong {
  color: #c084fc;
  font-weight: 700;
}

.badge {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.45);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar nav a {
  color: #a78bfa;
  text-decoration: none;
  margin-left: 4px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}

.topbar nav a:hover {
  color: #fff;
  background: rgba(167, 139, 250, 0.15);
}

/* Topbar icon buttons */
.topbar-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-icons svg,
.topbar-icons .icon-btn {
  color: #a78bfa;
  cursor: pointer;
  width: 20px;
  height: 20px;
  transition: color 0.18s;
}

.topbar-icons .icon-btn:hover { color: #fff; }

/* ── Sub-nav / tab bar ── */
.subnav {
  background: #fff;
  border-bottom: 1px solid #e5e0f8;
  padding: 0 28px;
  display: flex;
  gap: 0;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b7280;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.subnav a:hover,
.subnav a.active {
  color: #7c3aed;
  border-bottom-color: #7c3aed;
}

/* ── Card ── */
.card {
  max-width: 520px;
  margin: 64px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(109, 40, 217, 0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Label strip above card heading ── */
.card-label {
  display: inline-block;
  background: linear-gradient(90deg, #ede9fe 0%, #f3e8ff 100%);
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

h1 {
  margin-top: 0;
  font-size: 26px;
  font-weight: 700;
  color: #1a1040;
  letter-spacing: -0.01em;
}

.subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ── Form ── */
form label {
  display: block;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
}

form label.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  color: #6b7280;
  font-size: 13px;
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #7c3aed;
  cursor: pointer;
}

input[type="text"],
input[type="password"],
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 14px;
  border: 1.5px solid #e5e0f8;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1040;
  background: #fafafa;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  background: #fff;
}

/* ── Button ── */
button {
  width: 100%;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  font-family: inherit;
  margin-top: 6px;
}

button:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.45);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.3);
}

/* ── Helper links ── */
.helper-links {
  margin-top: 18px;
  font-size: 13px;
  text-align: center;
  color: #9ca3af;
}

.helper-links a {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.helper-links a:hover { color: #5b21b6; }

/* ── Hint / credential banner ── */
.attempt {
  margin-top: 22px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #f5f3ff 0%, #faf5ff 100%);
  border: 1.5px solid #ddd6fe;
  border-radius: 10px;
  font-size: 13px;
  color: #5b21b6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attempt code {
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ── Success banner ── */
.success-banner {
  margin-top: 20px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 10px;
  color: #14532d;
  font-size: 13.5px;
}

.success-banner code {
  background: #bbf7d0;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ── Directory / comment list ── */
.directory-list {
  margin-top: 16px;
  padding-left: 20px;
  color: #374151;
  line-height: 1.9;
}

#comment-list {
  padding-left: 20px;
  color: #374151;
  line-height: 1.9;
}

/* ── Article (news page) ── */
article {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f3f0fc;
}

article h2 {
  font-size: 17px;
  color: #1a1040;
  margin-top: 0;
  margin-bottom: 8px;
}

article p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}
