:root {
  --finalix-dark-blue: #005063;
  --finalix-standard-blue: #0080a0;
  --finalix-light-blue: #89c1d0;
  --finalix-light-grey: #878787;
  --finalix-dark-grey: #2f2f2f;
  --white: #ffffff;
  --page: #f3f5f6;
  --border: #d8e5ea;
  --shadow: 0 12px 36px rgba(0, 80, 99, 0.06);
  --shadow-strong: 0 20px 60px rgba(0, 80, 99, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: var(--finalix-dark-grey);
  background: var(--page);
}

body {
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.eyebrow {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--finalix-light-grey);
}

/* Login page */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(137, 193, 208, 0.18), transparent 35%),
    linear-gradient(135deg, #f6f8f9, #eef3f5);
}

.login-shell {
  width: min(1120px, 92vw);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(137, 193, 208, 0.35);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.brand-panel {
  padding: 4rem;
  background: linear-gradient(160deg, rgba(0, 80, 99, 0.05), rgba(0, 128, 160, 0.08));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo {
  width: min(440px, 100%);
  margin-bottom: 2rem;
}

.brand-copy h1 {
  margin: 0 0 1rem 0;
  font-size: 3rem;
  line-height: 1;
  color: var(--finalix-dark-blue);
}

.subtitle {
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--finalix-dark-grey);
}

.login-card {
  padding: 3rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: var(--finalix-dark-blue);
}

.login-intro {
  margin: 0 0 1.75rem 0;
  color: var(--finalix-light-grey);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.login-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--finalix-dark-grey);
}

.login-form input {
  height: 48px;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input:focus {
  border-color: var(--finalix-standard-blue);
  box-shadow: 0 0 0 4px rgba(0, 128, 160, 0.12);
}

.login-form button {
  margin-top: 0.8rem;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--finalix-dark-blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.login-form button:hover {
  background: var(--finalix-standard-blue);
  transform: translateY(-1px);
}

.alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(173, 20, 72, 0.08);
  color: #8f153e;
  border: 1px solid rgba(173, 20, 72, 0.18);
}

.microcopy {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--finalix-light-grey);
}

/* Dashboard */

.dashboard-body {
  min-height: 100vh;
  background: var(--page);
}

.topbar {
  padding: 1.25rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--finalix-dark-blue);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-pill {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(137, 193, 208, 0.18);
  color: var(--finalix-dark-grey);
  font-size: 0.92rem;
}

.logout-link {
  color: var(--finalix-standard-blue);
  font-weight: 700;
}

.dashboard-shell {
  width: min(1200px, 92vw);
  margin: 2rem auto 4rem;
}

.hero-card,
.demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero-card h2 {
  margin: 0 0 0.8rem 0;
  font-size: 2rem;
  color: var(--finalix-dark-blue);
}

.hero-copy {
  margin: 0;
  max-width: 56rem;
  line-height: 1.7;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.demo-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.demo-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.demo-tag-stable {
  background: rgba(0, 128, 160, 0.12);
  color: var(--finalix-standard-blue);
}

.demo-tag-wip {
  background: rgba(245, 166, 35, 0.18);
  color: #b86b00;
}

.demo-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.4rem;
  color: var(--finalix-dark-blue);
}

.demo-card p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.demo-meta {
  margin-bottom: 1rem;
  color: var(--finalix-light-grey);
  font-size: 0.92rem;
}

.credential-box {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(137, 193, 208, 0.12);
  border: 1px solid rgba(137, 193, 208, 0.25);
}

.credential-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.28rem 0;
}

.credential-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--finalix-light-grey);
}

.credential-value {
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--finalix-dark-grey);
  word-break: break-word;
}

.credential-link {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.demo-button {
  margin-top: auto;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: var(--finalix-dark-blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem 0 1.1rem;
  width: 100%;
}

.demo-button:hover {
  background: var(--finalix-standard-blue);
  transform: translateY(-1px);
}

.demo-button .arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* Responsive */

@media (max-width: 900px) {
  .login-shell,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .login-card {
    padding: 2rem;
  }

  .brand-copy h1,
  .hero-card h2 {
    font-size: 2.2rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .dashboard-shell {
    width: min(94vw, 1200px);
  }

  .topbar {
    padding: 1rem 1.2rem;
  }

  .hero-card,
  .demo-card {
    border-radius: 20px;
  }

  .credential-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .credential-label {
    margin-bottom: 0.15rem;
  }
}