@font-face {
  font-family: "Pogonia";
  src: url("../endule-routekaart/assets/fonts/pogonia-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pogonia";
  src: url("../endule-routekaart/assets/fonts/pogonia-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pogonia";
  src: url("../endule-routekaart/assets/fonts/pogonia-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Roboto Serif", Georgia, serif;
  --font-heading: "Pogonia", "Avenir Next", "Helvetica Neue", sans-serif;
  --bg: #d0e7da;
  --card: #8eb1b2;
  --card-soft: rgba(142, 177, 178, 0.18);
  --brand: #211452;
  --coral: #ee7268;
  --coral-soft: rgba(238, 114, 104, 0.2);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(238, 114, 104, 0.22), transparent 42%),
    var(--bg);
  color: var(--white);
}

body {
  padding: 24px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.view {
  display: none;
}

.view.view-active {
  display: block;
}

.portal-card,
.login-card {
  width: min(720px, 100%);
  padding: 28px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--card) 0%, #86acad 100%);
  display: grid;
  gap: 20px;
}

.portal-card {
  min-height: min(720px, calc(100vh - 48px));
  grid-template-rows: auto auto 1fr;
}

.brand-block {
  display: grid;
  justify-items: center;
}

.brand-logo {
  width: 190px;
  max-width: 75%;
  height: auto;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 0.98;
}

h1,
h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

h3 {
  font-size: 1.15rem;
}

.intro-block {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

p {
  margin: 0;
}

.intro-copy,
.login-description,
.meta-text,
label span {
  color: rgba(255, 255, 255, 0.9);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
  margin-bottom: 22px;
}

.app-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.68);
  min-height: 180px;
  align-content: space-between;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(33, 20, 82, 0.18);
  border-color: rgba(255, 255, 255, 0.92);
}

.app-card-head,
.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-card-head {
  align-items: flex-start;
}

.app-card-main {
  display: grid;
  gap: 12px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(238, 114, 104, 0.28);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.app-name {
  font-size: 1.2rem;
  color: var(--white);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.status-soon {
  background: rgba(238, 114, 104, 0.32);
}

.button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
}

.button-primary {
  background: var(--coral);
  color: var(--white);
}

.button-secondary,
.back-link {
  background: rgba(238, 114, 104, 0.2);
  color: var(--white);
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-shell {
  display: grid;
  gap: 16px;
}

.login-form,
.meta-panel {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
}

input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.login-message {
  min-height: 18px;
}

.meta-panel {
  padding-top: 10px;
  border-top: 1px solid rgba(238, 114, 104, 0.32);
  justify-items: start;
}

.portal-address {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.website-link:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .portal-card,
  .login-card {
    padding: 20px;
  }

  .portal-card {
    min-height: auto;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card-head,
  .app-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
