@font-face {
  font-family: system-ui;
  src: local("Arial");
}

:root {
  --bg: #f6dfaf;
  --ink: #1f1710;
  --muted: rgba(31, 23, 16, 0.62);
  --line: rgba(31, 23, 16, 0.16);
  --glass: rgba(255, 248, 232, 0.58);
  --glass-strong: rgba(255, 248, 232, 0.78);
  --shadow: 0 30px 100px rgba(43, 26, 7, 0.18);
  --gold: #9f6d22;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(246, 223, 175, 0.64), rgba(246, 223, 175, 0.64)),
    url("assets/entourage-background.png") center / cover fixed,
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.45), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(104,64,12,0.12), transparent 48%);
}

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

button,
input {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(430px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.auth-card h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.subtitle {
  margin-bottom: 34px;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(31, 23, 16, 0.76);
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  color: var(--ink);
  padding: 14px 15px;
  outline: none;
}

input:focus {
  border-color: rgba(159, 109, 34, 0.62);
  box-shadow: 0 0 0 4px rgba(159, 109, 34, 0.08);
}

button {
  border: 1px solid rgba(31, 23, 16, 0.82);
  background: var(--ink);
  color: #fff7df;
  padding: 15px 18px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: #2b2117;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
}

.auth-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 223, 175, 0.68);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(31, 23, 16, 0.72);
  font-size: 13px;
  font-weight: 700;
}

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

.topbar button {
  padding: 10px 15px;
  font-size: 13px;
}

.dashboard {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 48px auto;
  display: grid;
  gap: 24px;
}

.hero-panel,
.panel,
.status-panel {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(43, 26, 7, 0.11);
}

.hero-panel {
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: clamp(32px, 6vw, 72px);
}

.hero-panel h2 {
  max-width: 850px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero-panel p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel {
  min-height: 250px;
  padding: 30px;
}

.panel-number {
  display: block;
  margin-bottom: 54px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.panel h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.panel p,
.status-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.status-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
}

.status-panel h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.status-panel p {
  max-width: 420px;
  margin-bottom: 0;
}

@media (max-width: 850px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .dashboard {
    width: min(100% - 28px, 1180px);
    margin: 28px auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 430px;
  }

  .status-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-card {
    padding: 32px 26px;
  }
}
