:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 1);
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --accent: #0f172a;
  --accent-strong: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(248, 250, 252, 0.96);
}

.login-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel-strong);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.login-card h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.login-copy {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  outline: none;
}

button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.login-error {
  min-height: 20px;
  margin-top: 12px;
  color: #ff9aa2;
}

.app-shell {
  min-height: 100vh;
  padding: 20px 24px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 28px;
}

.brand {
  color: var(--accent-strong);
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-decoration: none;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab {
  width: auto;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
}

.tab.active {
  color: var(--accent-strong);
  border-color: var(--border);
  background: var(--panel);
}

.hero {
  display: grid;
  gap: 20px;
}

.content-panel {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.content-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.tab-panel {
  display: none;
  height: 100%;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.project-card {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.3fr 1fr;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.project-image-wrapper {
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-meta {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta .eyebrow {
  color: var(--accent-strong);
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.project-meta h4 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.05;
}

.project-meta p {
  color: var(--muted);
  margin: 18px 0 24px;
  line-height: 1.75;
}

.project-meta span {
  color: var(--accent-strong);
  font-weight: 600;
}

.empty-state {
  height: 320px;
  border-radius: 24px;
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(248,250,252,0.8), rgba(255,255,255,0.95));
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
