:root {
  /* Rols */
  --rols-sand: #FAF8F6;
  --rols-card: #FFFFFF;
  --rols-graphite: #4D4D4D;
  --rols-tan: #D5B38C;
  --rols-tan-hover: #B89368;
  --rols-tan-soft: #EFE2CD;
  --rols-border: #E5DCD2;
  --rols-text: #2a2a2a;
  --rols-muted: #7A7A7A;

  /* Heroturfs */
  --hero-navy: #323F49;
  --hero-light: #475569;
  --hero-card: #ffffff;
  --hero-text: #1e293b;
  --hero-muted: rgba(255,255,255,0.72);
  --hero-border: rgba(255,255,255,0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rols-text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ===================== Portal landing ===================== */
.portal-body {
  background: var(--rols-sand);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--rols-border);
}
.topbar .brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rols-graphite);
}
.logout-btn {
  font-size: 12.5px;
  color: var(--rols-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--rols-border);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s;
}
.logout-btn:hover { color: var(--rols-tan-hover); border-color: var(--rols-tan); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-grow: 1;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.col {
  display: flex;
  flex-direction: column;
  padding: 56px 48px;
  min-height: calc(100vh - 56px);
}
.col-rols {
  background: var(--rols-sand);
  color: var(--rols-text);
}
.col-heroturfs {
  background: var(--hero-navy);
  background: linear-gradient(135deg, var(--hero-navy) 0%, var(--hero-light) 100%);
  color: #fff;
}

.col-head {
  margin-bottom: 36px;
}
.col-logo {
  width: 130px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}
.col-heroturfs .col-logo { filter: brightness(0) invert(1); }
.col h2 {
  font-size: 28px;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.01em;
}
.col-heroturfs h2 { color: #fff; }
.col-tagline {
  font-size: 14px;
  margin: 4px 0 0;
  color: var(--rols-muted);
}
.col-heroturfs .col-tagline { color: var(--hero-muted); }

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--rols-card);
  border: 1px solid var(--rols-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--rols-text);
  box-shadow: 0 2px 6px -4px rgba(77,77,77,0.08);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(77,77,77,0.25);
  border-color: var(--rols-tan);
}
.col-heroturfs .card {
  background: rgba(255,255,255,0.08);
  border-color: var(--hero-border);
  color: #fff;
  backdrop-filter: blur(6px);
}
.col-heroturfs .card:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

.card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rols-tan-soft);
  border-radius: 12px;
}
.col-heroturfs .card-icon {
  background: rgba(255,255,255,0.14);
}

.card-text {
  flex-grow: 1;
  min-width: 0;
}
.card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.card-desc {
  font-size: 12.5px;
  color: var(--rols-muted);
  line-height: 1.4;
}
.col-heroturfs .card-desc { color: var(--hero-muted); }

.card-arrow {
  font-size: 18px;
  color: var(--rols-muted);
  transition: transform 0.2s;
}
.card:hover .card-arrow { transform: translateX(3px); color: var(--rols-tan-hover); }
.col-heroturfs .card-arrow { color: var(--hero-muted); }
.col-heroturfs .card:hover .card-arrow { color: #fff; }

.card-empty {
  padding: 14px 20px;
  font-style: italic;
  color: var(--rols-muted);
  background: transparent;
  border-style: dashed;
}

/* ===================== Login page ===================== */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--rols-sand);
  padding: 24px;
}
.login-card {
  background: var(--rols-card);
  border: 1px solid var(--rols-border);
  border-radius: 18px;
  padding: 40px 48px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 60px -28px rgba(77, 77, 77, 0.18);
  text-align: center;
}
.login-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.login-logos img { height: 36px; width: auto; display: block; }
.login-amp {
  color: var(--rols-muted);
  font-size: 18px;
}
.login-card h1 {
  font-size: 22px;
  font-weight: 500;
  color: var(--rols-graphite);
  margin: 0 0 4px;
}
.login-sub {
  color: var(--rols-muted);
  font-size: 13px;
  margin: 0 0 26px;
}
.login-form { text-align: left; }
.login-form label {
  display: block;
  font-size: 12px;
  color: var(--rols-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.login-form input[type=password] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rols-border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--rols-text);
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form input[type=password]:focus {
  border-color: var(--rols-tan);
  box-shadow: 0 0 0 3px rgba(213, 179, 140, 0.15);
}
.login-form button {
  width: 100%;
  background: var(--rols-tan);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.login-form button:hover { background: var(--rols-tan-hover); }
.login-error {
  color: #8C2E25;
  background: #FDE6E3;
  border: 1px solid #F4C7C0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 0 0 14px;
  text-align: center;
}
