/* SPDX-License-Identifier: AGPL-3.0-or-later */
/* Commercial license available */
/* © Concepts 1996–2026 Miroslav Šotek. All rights reserved. */
/* © Code 2020–2026 Miroslav Šotek. All rights reserved. */
/* ORCID: 0009-0009-3560-0851 */
/* Contact: www.anulum.li | protoscience@anulum.li */
/* Remanentia Portal — customer-zone interface */

:root {
  color-scheme: dark;
  --bg: #070b11;
  --surface: #0d141d;
  --surface-2: #111c27;
  --line: #213140;
  --text: #ecf4f2;
  --muted: #9eb0b3;
  --accent: #73dfce;
  --accent-2: #74a8ff;
  --danger: #ff9f9f;
  --warning: #f0cf82;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(116, 168, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(115, 223, 206, 0.11), transparent 28rem),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: #b9fff3;
}

.portal-header,
.portal-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.portal-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(158, 176, 179, 0.17);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.portal-brand span:last-child {
  display: grid;
  gap: 1px;
}

.portal-brand strong {
  letter-spacing: 0.02em;
}

.portal-brand small {
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 24px rgba(115, 223, 206, 0.28);
}

.portal-header nav,
.portal-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.portal-header nav a,
.portal-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.portal-header nav .nav-account {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
}

main {
  padding: 72px 0 96px;
}

.portal-hero {
  max-width: 820px;
  padding: 30px 0 70px;
}

.eyebrow,
.card-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 16px 0 22px;
  font-size: clamp(2.45rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 900px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.portal-hero > p {
  font-size: 1.12rem;
  max-width: 710px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 21px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #04100e;
  background: var(--accent);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.button.full {
  width: 100%;
  margin-top: 10px;
}

.portal-grid {
  display: grid;
  gap: 18px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-card,
.product-card,
.notice-card,
.product-family,
.portal-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 28, 39, 0.94), rgba(10, 16, 24, 0.94));
  box-shadow: var(--shadow);
}

.surface-card,
.product-card,
.notice-card {
  padding: 26px;
}

.surface-card h2,
.product-card h2 {
  margin: 13px 0 9px;
}

.surface-card p,
.product-card p,
.notice-card p {
  margin-bottom: 0;
}

.product-family {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 34px;
  margin-top: 18px;
}

.product-family ul {
  display: grid;
  gap: 11px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-family li {
  padding: 11px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(115, 223, 206, 0.045);
}

.form-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.form-shell.compact {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.form-intro h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.portal-form {
  padding: 30px;
  display: grid;
  gap: 9px;
}

.portal-form label {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #c7d5d5;
}

.portal-form input {
  min-height: 48px;
  border: 1px solid #2a3d4d;
  border-radius: 10px;
  padding: 0 13px;
  background: #080e15;
  color: var(--text);
  font: inherit;
}

.portal-form input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.field-help,
.form-note {
  font-size: 0.82rem;
  margin: 0;
}

.form-alert {
  border: 1px solid rgba(255, 159, 159, 0.42);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffd6d6;
  background: rgba(122, 26, 26, 0.22);
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-bottom: 14px;
}

.dashboard-heading p {
  margin-bottom: 0;
}

.notice-card {
  margin-bottom: 18px;
  border-color: rgba(116, 168, 255, 0.38);
}

.notice-card strong {
  color: #cfe0ff;
}

.product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status.active {
  color: #b9fff3;
  background: rgba(27, 120, 100, 0.34);
}

.status.trial {
  color: #ffe9b7;
  background: rgba(122, 92, 18, 0.35);
}

.status.expired,
.status.revoked {
  color: #ffd2d2;
  background: rgba(122, 26, 26, 0.32);
}

.status.neutral {
  color: #c3cfd2;
  background: rgba(158, 176, 179, 0.12);
}

.entitlement-detail {
  color: #c9d7d6;
  font-weight: 650;
}

.portal-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(158, 176, 179, 0.17);
}

.portal-footer p {
  margin: 0;
  font-size: 0.88rem;
}

@media (max-width: 760px) {
  .portal-header {
    padding: 18px 0;
    align-items: flex-start;
  }

  .portal-header nav {
    justify-content: flex-end;
    gap: 10px 15px;
  }

  .portal-header nav a:not(.nav-account) {
    display: none;
  }

  main {
    padding-top: 42px;
  }

  .portal-hero {
    padding-top: 15px;
  }

  .two-column,
  .product-grid,
  .product-family,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .product-family,
  .form-shell {
    gap: 25px;
  }

  .dashboard-heading,
  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-footer {
    padding: 26px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
