
:root {
    --surface: #141416;
    --surface-2: #242424;
    --border: #2e2e2e;
    --border-strong: #3a3a3a;
    --text: #f2f2f2;
    --text-muted: #a3a3a3;
    --accent: #b10008;
    --accent-hover: #740000;
    --accent-soft: rgba(177, 0, 8, .14);
    --accent-glow: rgba(177, 0, 8, .08);
    --accent-glow-strong: rgba(177, 0, 8, .35);
    --link: #a4a4a4;
    --danger-text: #fca5a5;
    --danger-bg: rgba(220, 38, 38, .12);
    --radius: 12px;
    --radius-sm: 8px;
    --focus-ring: 0 0 0 2px #b10008;
    --font: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #272727;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 500px at 50% -10%, var(--accent-glow), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.blob-container { display: none; }

.page-wrapper {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.page-header img {
  display: block;
  max-width: 275px;
  height: auto;
}

.server-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.subtitle {
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 1rem;
}

.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  overflow: hidden;
}

.card-body { padding: 28px; }

.card-body.is-centered {
  padding: 36px 28px;
  text-align: center;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.body-text {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.email-highlight {
  color: var(--text);
  font-weight: 600;
}

.field + .field { margin-top: 1.1rem; }

.jelly-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.jelly-input {
  width: 100%;
  min-height: 44px;
  padding: .6em .8em;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.jelly-input:hover { border-color: #4a4a4a; }

.jelly-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.jelly-input::placeholder { color: #8f8f8f; }

select.jelly-input {
  appearance: none;
  padding-right: 2.5em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3a3a3' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9em center;
}

.jelly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: .6em 1.25rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.jelly-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.jelly-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.jelly-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.error-box {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: var(--danger-bg);
  border: 1px solid rgba(248, 113, 113, .4);
  border-radius: var(--radius-sm);
}

.error-box p {
  color: var(--danger-text);
  font-size: .92rem;
  font-weight: 600;
}

.info-box {
  margin-top: 1.25rem;
  padding: .85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.info-box strong { color: var(--text); }

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--link);
}

.icon-wrap svg {
  width: 28px;
  height: 28px;
}

.back-link {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
  text-align: center;
}

.back-link a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}



.back-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.jelly-footer {
    margin-top: 0;
    color: #707070;
    font-size: .8rem;
    letter-spacing: .02em;
    text-align: center;
}

pre {
  margin: 1rem 0;
  padding: .9rem 1rem;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  text-align: left;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .9em;
}


.turnstile-wrap {
  margin-top: 1.25rem;
  min-height: 65px;
  color-scheme: dark;
  overflow: hidden;
}

@media (max-width: 389px) {
  .turnstile-wrap { min-height: 0; height: 56px; }
  .turnstile-wrap .cf-turnstile {
    width: 117.65%;
    transform: scale(.85);
    transform-origin: 0 0;
  }
}

@media (max-width: 344px) {
  .turnstile-wrap { height: 47px; }
  .turnstile-wrap .cf-turnstile {
    width: 138.9%;
    transform: scale(.72);
  }
}


.section-title {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.label-hint {
  display: block;
  margin-top: .35rem;
  color: #8f8f8f;
  font-size: .82rem;
  text-transform: none;
  letter-spacing: 0;
}

.admin-table .jelly-btn,
.resend-form .jelly-btn,
.logout-form .jelly-btn {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  font-size: .95rem;
}

.admin-table .jelly-btn {
  width: auto;
  min-height: 36px;
  margin-top: 0;
  padding: .35em .9em;
}

.admin-table .jelly-btn:hover,
.resend-form .jelly-btn:hover,
.logout-form .jelly-btn:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.admin-nav a,
.tab-nav label,
.role-add-btn {
  background-color: var(--surface-2);
  border-color: var(--button-border);
  color: var(--text-muted);
}