@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap");

:root {
  --bg: #f7f2e8;
  --bg-accent: #dbe7f5;
  --ink: #1f1e21;
  --muted: #5a5a64;
  --card: rgba(255, 255, 255, 0.85);
  --accent: #e37a2c;
  --accent-dark: #b55a1c;
  --success: #1f7a5a;
  --error: #b4302f;
  --shadow: 0 24px 60px rgba(32, 34, 40, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff, var(--bg)),
    radial-gradient(circle at bottom right, #cfe3f7, var(--bg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.app-shell,
.auth-shell {
  width: min(980px, 100%);
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  animation: fadeIn 0.6s ease-out;
}

.auth-shell {
  max-width: 520px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-header h1 {
  margin: 6px 0 10px;
  font-size: 2rem;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

.form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.form input[type="text"],
.form input[type="password"],
.form input[type="file"] {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d7d7dc;
  font-size: 0.95rem;
  background: #fff;
}

button {
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(227, 122, 44, 0.3);
}

.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 12px;
}

.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 122, 90, 0.08);
  color: var(--success);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.status.error {
  background: rgba(180, 48, 47, 0.1);
  color: var(--error);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  text-decoration: none;
}

.download-link:hover {
  background: rgba(0, 0, 0, 0.08);
}

.progress {
  margin-top: 16px;
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #e37a2c, #f2b072);
  transition: width 0.25s ease;
}

.progress-text {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.checklist {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(31, 30, 33, 0.2);
}

.checklist-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.checklist-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
}

.checklist-list li {
  margin-bottom: 4px;
}

.hidden {
  display: none;
}

.logout {
  margin-top: 12px;
}

.notes {
  padding: 28px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(31, 30, 33, 0.2);
}

.notes h2 {
  margin-top: 0;
}

.notes ul {
  padding-left: 18px;
  margin-bottom: 0;
  color: var(--muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body {
    padding: 20px;
  }

  .card {
    padding: 24px;
  }
}
