body.site-home {
  min-height: 100vh;
}

body.auth-open {
  overflow: hidden;
}

body.auth-open .navbar,
body.auth-open .hero,
body.auth-open footer {
  filter: blur(1.2px);
  user-select: none;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 38px) var(--page-pad) 92px;
  perspective: 1100px;
}

.hero-glass {
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  width: min(100%, 1180px);
  min-height: 610px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7.5%, transparent), rgba(104, 199, 238, 0.055) 46%, rgba(241, 186, 99, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.044) 44%, rgba(255, 255, 255, 0.028)),
    rgba(6, 17, 20, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -28px 76px rgba(0, 0, 0, 0.22),
    0 22px 58px rgba(0, 0, 0, 0.28);
  padding: 104px clamp(28px, 5vw, 52px) 76px;
  transform:
    translate3d(var(--glass-shift-x), var(--glass-shift-y), 0)
    rotateX(var(--glass-tilt-y))
    rotateY(var(--glass-tilt-x));
  transform-style: preserve-3d;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion) var(--ease);
  place-items: center;
  border-color: rgba(198, 233, 221, 0.20);
  backdrop-filter: blur(12px) saturate(128%);
  -webkit-backdrop-filter: blur(12px) saturate(128%);
  will-change: auto;
  --glass-tilt-x: 0deg;
  --glass-tilt-y: 0deg;
  contain: paint;
  backface-visibility: hidden;
  transform-origin: center;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: none;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
}

.hero-glass::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  transform: translateZ(32px);
  display: flex;
  width: 100%;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.server-status-fixed {
  position: absolute;
  top: 30px;
  right: auto;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
}

.server-status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(5, 17, 20, 0.46);
  box-shadow: none;
  backdrop-filter: blur(12px);
  padding: 0 16px;
  color: rgba(225, 241, 236, 0.82);
  font-size: 0.88rem;
  justify-content: center;
  border-color: rgba(198, 233, 221, 0.16);
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--warning);
}

.server-status-line.is-online .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.server-status-line.is-offline .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 113, 113, 0.15);
}

.server-name {
  margin: 0;
  color: rgba(230, 246, 240, 0.80);
  font-size: clamp(2.4rem, 5.2vw, 3rem);
  line-height: 0.98;
  font-weight: 780;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  margin-bottom: 16px;
}

.big-server-ip {
  display: block;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: auto;
  margin: 0 0 30px;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
  background: none;
  box-shadow: none;
  padding: 0;
  color: rgba(247, 255, 251, 0.98);
  font-size: clamp(3.2rem, 8.4vw, 6rem);
  font-weight: 760;
  letter-spacing: 0;
  max-width: 100%;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 52px color-mix(in srgb, var(--accent) 18%, transparent),
    0 26px 82px rgba(104, 199, 238, 0.13),
    0 28px 86px rgba(0, 0, 0, 0.34);
}

.big-server-ip::before {
  content: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(143, 240, 170, 0.10), transparent 48%, rgba(104, 199, 238, 0.09));
  pointer-events: none;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(104, 199, 238, 0.20)),
    rgba(6, 17, 20, 0.32);
  color: rgba(248, 255, 251, 0.96);
  box-shadow: none;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
  min-width: 158px;
  min-height: 56px;
  gap: 10px;
  padding: 0 26px;
  border-color: rgba(143, 240, 170, 0.38);
  font-size: 1rem;
  font-weight: 800;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.copy-btn:hover {
  border-color: rgba(202, 244, 229, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.065)),
    linear-gradient(135deg, rgba(116, 227, 151, 0.34), rgba(104, 199, 238, 0.24)),
    rgba(6, 17, 20, 0.36);
}

.copy-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.copy-btn.copied {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  color: var(--accent-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(104, 199, 238, 0.26), color-mix(in srgb, var(--accent) 30%, transparent));
}

.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 690px;
  justify-content: center;
  margin-top: 32px;
  font-size: 0.94rem;
  font-weight: 650;
}

.server-meta span,
.server-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(6, 19, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 0 12px;
  color: rgba(220, 238, 232, 0.76);
  font-size: 0.92rem;
  justify-content: center;
  border-color: rgba(198, 233, 221, 0.13);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.server-meta strong,
.server-meta a {
  color: var(--text-strong);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 8%, rgba(104, 199, 238, 0.18), transparent 34%),
    rgba(1, 4, 9, 0.58);
  backdrop-filter: blur(10px) saturate(120%);
  animation: authOverlayIn 0.18s ease-out;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  animation-duration: 0.12s;
}

.auth-panel {
  width: min(398px, calc(100vw - 44px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 96% 16%, rgba(104, 199, 238, 0.16), transparent 36%),
    radial-gradient(circle at 100% 78%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(12, 18, 29, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
  padding: 28px 28px;
  animation: authPanelIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  overscroll-behavior: contain;
  border-color: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  animation-duration: 0.16s;
  max-width: 398px;
  min-width: 0;
  scrollbar-gutter: auto;
  overflow-x: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.20), transparent 36%),
    radial-gradient(circle at 94% 18%, rgba(104, 199, 238, 0.16), transparent 38%),
    radial-gradient(circle at 100% 82%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 38%);
  pointer-events: none;
}

.auth-panel > :not(.auth-close) {
  position: relative;
  z-index: 1;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  align-items: center !important;
  justify-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

.auth-close:hover {
  background: rgba(255, 113, 113, 0.16);
  color: var(--text-strong);
}

.auth-view h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.82rem;
  letter-spacing: 0;
  max-width: calc(100% - 44px);
  font-weight: 830;
  line-height: 1.14;
}

.auth-view p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-view form,
.auth-actions {
  display: flex;
  gap: 13px;
  margin-top: 0;
  flex-direction: column;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 800;
  width: fit-content;
  pointer-events: none;
  user-select: none;
}

.auth-view input[type="text"],
.auth-view input[type="password"] {
  min-height: 46px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.18);
  height: 46px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.12);
  color: #ffffff;
  font-size: 0.92rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  flex-direction: row;
  line-height: 1.45;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.edition-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--toggle-gap);
  border: 1px solid rgba(222, 238, 229, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.032)),
    rgba(7, 17, 20, 0.34);
  padding: var(--toggle-pad);
  --toggle-offset: 0px;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.15);
  --toggle-pad: 4px;
  --toggle-gap: 4px;
  min-height: 46px;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    border-color var(--motion) var(--ease),
    background var(--motion) var(--ease),
    box-shadow var(--motion) var(--ease);
}

.edition-toggle label {
  min-width: 0;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.edition-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.edition-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 11px;
  color: rgba(226, 238, 233, 0.68);
  font-weight: 850;
  transition:
    color var(--motion) var(--ease),
    transform var(--motion) var(--ease),
    opacity var(--motion) var(--ease);
  font-size: 0.86rem;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.edition-toggle input:checked + span {
  background: transparent !important;
  color: #ffffff;
  box-shadow: none !important;
  transform: translateY(-1px);
}

.discord-consent {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(241, 186, 99, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.16);
  padding: 12px 14px;
  border-color: rgba(241, 186, 99, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.discord-consent.requires-attention {
  border-color: rgba(255, 113, 113, 0.55);
}

.discord-btn {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(88, 101, 242, 0.88), rgba(104, 199, 238, 0.54));
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 30px rgba(88, 101, 242, 0.20);
}

.discord-btn[aria-disabled="true"] {
  opacity: 0.58;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  flex: 0 0 auto;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.password-toggle .eye-slash {
  opacity: 0;
}

.password-toggle.is-visible .eye-slash {
  opacity: 1;
}

.password-warning {
  display: block;
  color: rgba(255, 247, 242, 0.98);
  font-size: 0.8rem;
  width: 100%;
  margin-top: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 113, 113, 0.68);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 113, 113, 0.24), rgba(255, 113, 113, 0.12)),
    rgba(0, 0, 0, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 4px rgba(255, 113, 113, 0.07);
  font-weight: 820;
  line-height: 1.4;
}

.verify-box {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(0, 0, 0, 0.16);
  padding: 17px;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.verify-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.verify-box code {
  color: var(--accent-strong);
  font-size: 1.12rem;
  font-weight: 900;
  word-break: break-all;
}

@keyframes messageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes authOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-message.shake {
  animation: messageShake 0.22s ease;
}

@media (max-width: 760px) {
  .hero {
    align-items: start;
    padding-top: 150px;
  }

  .hero-glass {
    min-height: 430px;
    padding: 28px 18px;
  }

  .server-status-fixed {
    position: static;
    margin-bottom: 24px;
  }

  .big-server-ip {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .server-meta {
    flex-direction: column;
  }

  .auth-panel {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .edition-toggle {
    grid-template-columns: 1fr;
  }
}

.server-meta strong {
  color: rgba(218, 255, 229, 0.94);
}

.server-meta a {
  color: rgba(104, 199, 238, 0.96);
}

.auth-view {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.auth-view input::placeholder {
  color: rgba(235, 244, 255, 0.42);
}

.auth-view input:focus {
  border-color: rgba(104, 199, 238, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(0, 0, 0, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 0 4px rgba(104, 199, 238, 0.13),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.edition-toggle::before {
  content: "";
  position: absolute;
  top: var(--toggle-pad);
  left: var(--toggle-pad);
  z-index: 0;
  width: calc((100% - (var(--toggle-pad) * 2) - var(--toggle-gap)) / 2);
  height: calc(100% - (var(--toggle-pad) * 2));
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(104, 199, 238, 0.24)),
    rgba(33, 53, 48, 0.90);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transform: translate3d(var(--toggle-offset), 0, 0);
  transition:
    transform var(--motion-slow) var(--ease),
    background var(--motion) var(--ease),
    box-shadow var(--motion) var(--ease);
}

.edition-toggle[data-selected="bedrock"],
.edition-toggle:has(input[value="bedrock"]:checked) {
  --toggle-offset: calc(100% + var(--toggle-gap));
}

.edition-toggle label,
.edition-toggle span {
  position: relative;
  z-index: 1;
}

.discord-consent p {
  color: rgba(255, 245, 194, 0.92);
  font-size: 0.82rem;
  font-weight: 650;
}

.discord-btn,
.auth-main-btn,
.auth-sub-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 790;
  white-space: normal;
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.auth-main-btn {
  border-color: rgba(143, 240, 170, 0.54);
  color: #06110c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 94%, transparent), rgba(104, 199, 238, 0.72));
}

.auth-sub-btn {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.045);
}

@media (prefers-reduced-motion: reduce) {
  .hero-glass,
  .auth-overlay,
  .auth-panel,
  .edition-toggle::before {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .hero-glass {
    min-height: 570px;
    padding-top: 98px;
    padding-bottom: 68px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 150px;
  }

  .hero-glass {
    min-height: 480px;
    padding: 82px 22px 42px;
  }

  .server-status-fixed {
    position: absolute;
    top: 18px;
    left: 50%;
    margin-bottom: 0;
  }

  .server-name {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .big-server-ip {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .copy-btn {
    width: 100%;
    max-width: 280px;
  }

  .server-meta {
    margin-top: 24px;
  }

  .server-meta span,
  .server-meta a {
    width: 100%;
  }

  .auth-panel {
    padding: 28px 18px;
  }
}

.server-status-line,
.server-meta span,
.server-meta a,
.copy-btn,
.discord-btn,
.auth-main-btn,
.auth-sub-btn,
.verify-box {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-overlay,
.auth-panel {
  animation-duration: 0.08s;
}

.hero-glass,
.copy-btn,
.auth-close,
.discord-btn,
.auth-main-btn,
.auth-sub-btn,
.edition-toggle::before {
  transition-duration: var(--motion-fast);
}

.server-meta span > a {
  display: inline;
  width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: rgba(100, 210, 255, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.server-meta span > a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.glass-pointer-enabled .hero-glass {
  will-change: transform;
}

.server-status-line.is-online .status-dot,
.server-status-line.is-offline .status-dot {
  box-shadow: none;
}

.server-meta a,
.server-meta span > a {
  color: rgba(149, 221, 242, 0.96);
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .hero-glass {
    transform: none !important;
    will-change: auto;
  }
}

.auth-message,
.field-message {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.auth-message:empty,
.field-message:empty {
  display: none;
  min-height: 0;
  padding: 0;
}

.auth-message:not(:empty) {
  display: block;
  padding-top: 2px;
}

.field-message:not(:empty) {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .auth-panel {
    width: min(100%, calc(100vw - 28px));
    padding: 24px 16px;
  }
}

.credential-rules {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.credential-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: rgba(255, 226, 226, 0.84);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.credential-rules li::before {
  content: "\00d7";
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid rgba(255, 113, 113, 0.48);
  border-radius: 50%;
  color: #ffdede;
  background: rgba(255, 113, 113, 0.15);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.credential-rules li[data-state="valid"] {
  color: rgba(218, 255, 229, 0.9);
}

.credential-rules li[data-state="valid"]::before {
  content: "\2713";
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  color: #e9fff0;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.credential-rules li[data-state="pending"] {
  color: rgba(255, 245, 194, 0.84);
}

.credential-rules li[data-state="pending"]::before {
  content: "\2022";
  border-color: rgba(241, 186, 99, 0.46);
  color: #fff2c9;
  background: rgba(241, 186, 99, 0.14);
}

html[data-theme="light"] .credential-rules li {
  color: #a43434;
}

html[data-theme="light"] .credential-rules li[data-state="valid"] {
  color: #126734;
}

html[data-theme="light"] .credential-rules li[data-state="pending"] {
  color: #7a520f;
}

@media (max-width: 760px) {
  .auth-panel {
    width: min(100%, calc(100vw - 28px));
    max-width: 398px;
    padding: 24px 16px;
  }
}

.auth-view,
.auth-view form,
.auth-actions,
.field-group,
.password-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.auth-view input[type="text"],
.auth-view input[type="password"],
.password-field input[type="text"],
.password-field input[type="password"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background-clip: padding-box;
}

.password-field input[type="text"],
.password-field input[type="password"] {
  padding-right: 52px;
}

/* 2026-06-03: brighter dark home card, aligned auth close, smoother edition toggle */

body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(222, 238, 229, 0.34);
  background:
    linear-gradient(135deg, rgba(47, 68, 58, 0.98), rgba(38, 57, 59, 0.92) 52%, rgba(63, 54, 39, 0.84)),
    rgba(18, 27, 24, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 58px rgba(0, 0, 0, 0.24) !important;
}

body.site-home:not(.auth-page) .server-name {
  color: rgba(238, 248, 243, 0.86);
}

body.site-home:not(.auth-page) .big-server-ip {
  color: rgba(255, 255, 255, 0.99);
}

.auth-close::before {
  content: "\00d7";
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: currentColor;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  transform: none !important;
}

.edition-toggle input:focus-visible + span {
  outline: 2px solid rgba(104, 199, 238, 0.42);
  outline-offset: -2px;
}

html[data-theme="light"] .edition-toggle {
  border-color: rgba(40, 64, 54, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    rgba(235, 242, 237, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(30, 54, 44, 0.08);
}

html[data-theme="light"] .edition-toggle::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.70)),
    linear-gradient(135deg, rgba(98, 170, 118, 0.24), rgba(87, 151, 171, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 16px rgba(30, 54, 44, 0.10);
}

html[data-theme="light"] .edition-toggle span {
  color: rgba(31, 42, 36, 0.62);
}

html[data-theme="light"] .edition-toggle input:checked + span {
  color: #13231a;
}
