:root {
  --red: #d90000;
  --red-dark: #b80000;
  --ink: #111827;
  --muted: #666;
  --line: #e7e7e7;
  --bg: #f6f6f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

.admin-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 34px auto;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-top h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  outline: none;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

button,
.button-link {
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

button:hover,
.button-link:hover {
  background: var(--red-dark);
}

.button-link.secondary,
button.secondary {
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.button-link.secondary:hover,
button.secondary:hover {
  background: var(--ink);
  color: #fff;
}

.event-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.event-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.event-row h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.event-meta {
  color: var(--red);
  font-weight: 800;
}

.event-desc {
  color: #444;
  line-height: 1.5;
}

.notice {
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #fff3f3;
  color: var(--red);
  font-weight: 700;
}

.login-card {
  width: min(460px, calc(100% - 32px));
  margin: 70px auto;
}

@media (max-width: 720px) {
  .admin-grid,
  .event-row {
    grid-template-columns: 1fr;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

