:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

.server-page {
  font-family: system-ui, sans-serif;
}

.server-page--auth {
  margin: 0;
  background: #ffffff;
  color: #111827;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.server-page--auth .site-header {
  height: 64px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.server-page--auth .brand {
  font-weight: 700;
  text-decoration: none;
  color: #111827;
  font-size: 20px;
}

.server-page--auth .header-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.server-page--auth .header-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
}

.server-page--auth .header-links a:hover {
  color: #111827;
}

.server-page--auth .hero {
  height: 150px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.server-page--auth .content {
  width: 100%;
  max-width: 420px;
  margin: 32px auto;
  padding: 0 16px;
  flex: 1;
}

.server-page--auth .button-link {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #111827;
  text-align: center;
}

.server-page--auth .helper {
  margin-top: 12px;
  font-size: 14px;
}

.server-page--auth .site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 18px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.server-page--auth .site-footer .links {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.server-page--auth .site-footer .links a {
  color: #6b7280;
  text-decoration: none;
}

.server-page--auth .site-footer .links a:hover {
  color: #111827;
}

.server-page--simple {
  margin: 0;
  background: #ffffff;
  color: #111827;
  min-height: 100vh;
}

.server-page--simple .simple-content {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 16px;
}

.server-page--simple .simple-content--wide {
  max-width: 460px;
}

.server-page h1 {
  margin-bottom: 8px;
}

.server-page p {
  color: #666;
  margin-top: 0;
}

.server-page form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.server-page label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.server-page input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.server-page button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.server-page--auth button {
  background: #111827;
  color: #fff;
}

.server-page a {
  color: #1d4ed8;
  text-decoration: none;
}

.server-page a:hover {
  text-decoration: underline;
}

.server-page .error {
  color: #b00020;
  font-size: 14px;
}

.server-page .ok {
  color: #1a7f37;
  font-size: 14px;
}

.server-page .status {
  font-size: 15px;
  margin: 16px 0;
  line-height: 1.5;
}

.server-page .status.status-ok {
  color: #1a7f37;
}

.server-page .status.status-error {
  color: #b00020;
}
