/* App styles for login and home pages only */

:root {
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1a2332;
  --muted: #5a6a7a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --border: #d8e0e8;
  --radius: 10px;
  --font: "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse at top left, #dbeafe 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #e0e7ff 0%, transparent 45%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Login */

.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}

.card h1 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 650;
}

.card label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.card input[type="text"],
.card input[type="password"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.card input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: var(--accent);
}

.card button {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.card button:hover {
  background: var(--accent-hover);
}

.error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--error-bg);
  color: var(--error);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* Home */

.page-home .topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.page-home .topbar h1 {
  margin: 0;
  font-size: 1.25rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user {
  color: var(--muted);
  font-size: 0.9rem;
}

.button-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.button-link:hover {
  background: var(--accent-hover);
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
}

.content h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-list li + li {
  border-top: 1px solid var(--border);
}

.page-list a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.page-list a:hover {
  background: #f8fafc;
  color: var(--accent);
}

.hint {
  margin-top: 1.25rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.hint code {
  font-size: 0.9em;
  background: #e8eef5;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
