body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7f8;
  color: #222;
}

.centered {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.centered.narrow {
  max-width: 420px;
  margin: auto;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.6rem;
}

.tagline {
  max-width: 480px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2rem;
  text-align: center;
}

.muted {
  color: #666;
  margin-bottom: 2rem;
}

.button {
  padding: 0.7rem 1.4rem;
  background: #2c3e50;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.button:hover {
  background: #1f2f3d;
}

.button.logout {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #777;
}

.topbar {
  background: #2c3e50;
  color: white;
  padding: 1rem 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 2rem;
}

.tile {
  background: white;
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Shells */
.login-shell,
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  background: #f4f6f8;
}

/* Cards */
.login-card,
.login-box {
  width: 360px;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 8px;
}

.login-card {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.login-box {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Card headings */
.login-card h1,
.login-box h1 {
  text-align: center;
  margin: 0 0 0.25rem 0;
  font-size: 1.8rem;
}

/* Form elements */
label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #444;
}

input {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 1.1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: #3b6ea8;
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 7px;
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
}

/* Primary button */
.primary-btn {
  width: 100%;
  padding: 0.7rem;
  background: #3b6ea8;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.primary-btn:hover {
  background: #2f5f93;
}

/* Error */
.error {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #b00020;
  text-align: center;
}


.tool-tile {
  display: block;
  text-decoration: none;   /* removes underline */
  color: inherit;          /* removes blue link colour */
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-tile:visited {
  color: inherit;          /* stops purple visited links */
}

.tool-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tool-tile {
  cursor: pointer;
}