/* System pages — 404 / 403 / login / password / register.
   Matches editorial pg-hero language (brand cyan) with a centered content panel. */

.sys-page {
  min-height: 52vh;
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(75, 187, 221, 0.10), transparent 70%),
    var(--paper-3);
}

.sys-hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--line);
}
.sys-hero .wrap { max-width: 720px; }
.sys-hero .eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
[dir="rtl"] .sys-hero .eyebrow { letter-spacing: 0.4px; }
.sys-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -1.1px;
  margin: 14px 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
[dir="rtl"] .sys-hero h1 {
  font-family: var(--farsi);
  font-weight: 600;
  letter-spacing: 0;
}
.sys-hero .lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  max-width: 540px;
}

.sys-body {
  padding: 40px 0 88px;
}
.sys-body .wrap {
  max-width: 560px;
}

.sys-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 26px;
  box-shadow: 0 18px 40px rgba(58, 27, 48, 0.08);
}
.sys-panel .page-title,
.sys-page .region-content > .block-page-title-block,
.sys-page .block-page-title-block {
  display: none;
}

/* Default Drupal 404/403 plain text — replaced by hero copy. */
.sys-page--status .sys-panel > p:only-child,
.sys-page--status .sys-panel > div:only-child:not(form):not(.sys-actions) {
  display: none;
}

.sys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.sys-hero + .sys-body .sys-actions { margin-top: 0; }

.sys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(75, 187, 221, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.sys-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(75, 187, 221, 0.42);
}
.sys-btn-secondary {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}
.sys-btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
  box-shadow: none;
}

/* Forms inside the panel */
.sys-panel form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}
.sys-panel .js-form-item,
.sys-panel .form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.sys-panel label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.sys-panel .description,
.sys-panel .form-item__description {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 2px 0 0;
}
.sys-panel input[type="text"],
.sys-panel input[type="email"],
.sys-panel input[type="password"],
.sys-panel input[type="tel"],
.sys-panel select,
.sys-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.sys-panel input:focus,
.sys-panel select:focus,
.sys-panel textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(75, 187, 221, 0.18);
}
.sys-panel .form-required::after {
  content: ' *';
  color: #C04438;
}
.sys-panel .form-actions {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sys-panel .button,
.sys-panel input[type="submit"],
.sys-panel button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #0A0A0A;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  transition: background 0.15s, transform 0.15s;
}
.sys-panel .button:hover,
.sys-panel input[type="submit"]:hover,
.sys-panel button[type="submit"]:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
.sys-panel .button--primary {
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(75, 187, 221, 0.32);
}
.sys-panel .button--primary:hover {
  background: #2C6A7E;
}

.sys-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.sys-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.sys-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sys-page .tabs,
.sys-page nav.tabs,
.sys-page .block-local-tasks-block {
  display: none;
}

.sys-maint-logo {
  display: inline-block;
  margin-bottom: 18px;
}
.sys-maint-logo img {
  display: block;
  height: auto;
  max-width: 160px;
}

/* Password strength meters stay usable but fit the panel. */
.sys-panel .password-strength__meter,
.sys-panel .password-confirm,
.sys-panel .password-field,
.sys-panel .password-strength,
.sys-panel .password-confirm-match,
.sys-panel .password-confirm-message {
  width: 100%;
  max-width: none;
}

@media (max-width: 720px) {
  .sys-hero { padding: 40px 0 22px; }
  .sys-hero h1 { font-size: 34px; }
  .sys-body { padding: 28px 0 64px; }
  .sys-panel { padding: 22px 18px; border-radius: 16px; }
}
