:root {
  --event-bg: #0f1115;
  --event-card: #121826;
  --event-text: #e9eef5;
  --event-muted: #9ca3af;
  --event-border: #1f2638;
  --event-accent: #28c76f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--event-bg);
  color: var(--event-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.event-auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 16px;
}

.event-auth-wrap.has-header {
  min-height: calc(100vh - 76px);
}

.event-auth-form {
  width: min(420px, 100%);
  border: 1px solid var(--event-border);
  border-radius: 18px;
  padding: 26px;
  background: rgba(18, 24, 38, .98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

.event-auth-form h1 {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.event-auth-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--event-muted);
  font-size: 14px;
  font-weight: 700;
}

.event-auth-form label:not(:first-of-type) {
  margin-top: 16px;
}

.event-auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--event-border);
  border-radius: 12px;
  padding: 0 14px;
  background: #0b0d14;
  color: var(--event-text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.event-auth-form input:focus {
  border-color: var(--event-accent);
  background: #111827;
  box-shadow: 0 0 0 4px rgba(40, 199, 111, .14);
}

.event-auth-form button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 1px solid #22583b;
  border-radius: 12px;
  background: #173823;
  color: #bbf7d0;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .05s ease;
}

.event-auth-form button:hover,
.event-auth-form button:focus-visible {
  border-color: var(--event-accent);
  background: #1d472c;
  box-shadow: 0 0 0 4px rgba(40, 199, 111, .12);
}

.event-auth-form button:active {
  transform: translateY(1px);
}

.event-auth-message {
  margin-bottom: 16px;
  border: 1px solid var(--event-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--event-card);
  color: var(--event-text);
}

.event-auth-message.is-success {
  border-color: #22583b;
  background: #12261c;
  color: #bbf7d0;
}

.event-auth-message.is-error {
  border-color: #5f2424;
  background: #2b1515;
  color: #fecaca;
}

.event-admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--event-border);
  padding: 14px 16px;
  background: rgba(15, 17, 21, .96);
}

.event-admin-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.event-admin-header p {
  margin: 4px 0 0;
  color: var(--event-muted);
  font-size: 14px;
}

.event-admin-header a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--event-border);
  border-radius: 10px;
  padding: 0 12px;
  background: #151b2a;
  color: var(--event-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 640px) {
  .event-auth-wrap {
    align-items: flex-start;
    padding: 48px 14px 24px;
  }

  .event-auth-wrap.has-header {
    min-height: calc(100vh - 98px);
    padding-top: 24px;
  }

  .event-auth-form {
    padding: 22px;
  }

  .event-auth-form h1 {
    font-size: 24px;
  }

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