:root {
  --bg: #f8f6ef;
  --ink: #182028;
  --muted: #5f6a76;
  --accent: #cb5a35;
  --accent-2: #f3c13a;
  --surface: #ffffff;
  --line: #dfded7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 15% 10%, #f9dba6 0, transparent 30%),
              radial-gradient(circle at 80% 80%, #d9efe7 0, transparent 40%),
              var(--bg);
  font-family: "Space Grotesk", sans-serif;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.bg-blur {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.35;
  animation: drift 8s ease-in-out infinite alternate;
}

.bg-one {
  top: -70px;
  right: -40px;
  background: #f56f4c;
}

.bg-two {
  bottom: -60px;
  left: -50px;
  background: #f3c13a;
  animation-delay: 0.8s;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  z-index: 1;
  box-shadow: 0 22px 60px rgba(24, 32, 40, 0.12);
}

.brand-title {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.subtitle {
  margin: 10px 0 20px;
  color: var(--muted);
}

.error-box {
  background: #ffe5de;
  color: #8d2d12;
  border: 1px solid #ffc4b2;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-weight: 500;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(203, 90, 53, 0.15);
}

.auth-form button {
  margin-top: 10px;
  padding: 12px 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--accent), #dd7748);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.panel-body {
  min-height: 100vh;
  padding: 20px;
}

.panel-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(24, 32, 40, 0.08);
  overflow: hidden;
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h1 {
  margin: 0;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.logout-link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.table-section {
  padding: 14px 20px 24px;
}

.table-title-row h2 {
  margin: 8px 0 14px;
  font-size: 20px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
}

th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 30px 10px;
}

@keyframes drift {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(20px);
  }
}

@media (max-width: 680px) {
  .auth-card {
    padding: 24px 18px;
  }

  .brand-title {
    font-size: 28px;
  }

  .panel-body {
    padding: 12px;
  }

  .panel-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
