@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Roboto:wght@400;500&display=swap");

:root {
  --hit-yellow: #fecc37;
  --hit-orange: #ea6721;
  --hit-pink: #e42067;
  --hit-ink: #2d3537;
  --hit-gradient: linear-gradient(100deg, var(--hit-yellow) 0%, var(--hit-orange) 52%, var(--hit-pink) 100%);

  --gray-25: #fbfaf9;
  --gray-100: #ecead7;
  --gray-200: #dcd9d4;
  --gray-500: #78726b;
  --gray-600: #564f49;
  --gray-900: #141210;

  --accent: var(--hit-orange);
  --accent-hover: #d2540f;

  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(34, 31, 28, 0.08);
  --shadow-md: 0 4px 16px rgba(34, 31, 28, 0.1);
  --shadow-lg: 0 12px 32px rgba(34, 31, 28, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: var(--gray-25);
  color: var(--gray-900);
}

h1, h2, .logo-word {
  font-family: "Ubuntu", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark span {
  position: absolute;
  border-radius: 6px;
}
.logo-mark .tile-yellow {
  width: 24px;
  height: 24px;
  right: 0;
  top: 0;
  background: var(--hit-yellow);
}
.logo-mark .tile-orange {
  width: 24px;
  height: 24px;
  right: 0;
  bottom: 0;
  background: var(--hit-orange);
}
.logo-mark .tile-pink {
  width: 12px;
  height: 12px;
  left: 0;
  top: 14px;
  background: var(--hit-pink);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-word {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--hit-ink);
  letter-spacing: 0.01em;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gray-25);
}
.login-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 360px;
}
.login-card .logo-row {
  justify-content: center;
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  margin: 0 0 24px;
  color: var(--gray-600);
}
.field label {
  display: block;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: "Roboto", sans-serif;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.error-msg {
  color: var(--hit-pink);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 14px;
}

/* Overview page */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
}
.logout-form button {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.85rem;
  color: var(--gray-600);
  cursor: pointer;
}
.logout-form button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.tool-group {
  margin-bottom: 40px;
}
.tool-group-title {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin: 0 0 16px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.tile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: #fef1ea;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-icon svg {
  width: 20px;
  height: 20px;
}
.tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-name {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}
.tile-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.4;
}
