:root {
  --primary: #1c4b82;
  --secondary: #f1f4f9;
  --accent: #2f6fbd;
  --text: #1b1b1b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f8fb;
}

.login-page {
  background: linear-gradient(135deg, rgba(28, 75, 130, 0.9), rgba(47, 111, 189, 0.8)),
    url("/static/hr-background.svg") center/cover no-repeat fixed;
  min-height: 100vh;
}

.login-page .site-header {
  background: transparent;
  border-bottom: none;
  color: white;
}

.login-page .brand {
  color: white;
}

.login-page .container {
  margin-top: 1.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 1px solid #e1e6ef;
}

.brand {
  font-weight: 600;
  color: var(--primary);
}

.nav a {
  margin-right: 1rem;
  color: var(--primary);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

.user-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.metric {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: var(--primary);
}

.login-card {
  max-width: 420px;
  margin: 0 auto;
}

.login-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 2rem;
}

.login-hero__copy {
  color: white;
}

.login-hero__copy h1 {
  font-size: 2.3rem;
  margin: 0.5rem 0 1rem;
}

.login-hero__copy .subtitle {
  font-size: 1.05rem;
  opacity: 0.9;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94b5e5;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-top: 0.4rem;
  border: 1px solid #d2d9e4;
  border-radius: 8px;
  font-size: 0.95rem;
}

textarea {
  min-height: 120px;
}

button,
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: #a1acc0;
}

.button.danger {
  background: #c0392b;
}

.button.small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.alert {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-grid .section {
  margin-top: 2rem;
}

.form-grid .fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0.4rem 0 0.6rem;
}

.subtitle {
  color: #516079;
  margin: 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
}

.inline-search__actions {
  padding-top: 1.8rem;
}

.results {
  margin-top: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

table th,
 table td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid #e1e6ef;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.equipment-list {
  margin-top: 1.5rem;
}

.equipment-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.equipment-rows {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.equipment-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #f9fafc;
}

.equipment-row__actions {
  display: flex;
  align-items: flex-end;
}
