:root {
  --azzurro-50: #F3F8FC;
  --azzurro-100: #E8F1F8;
  --azzurro-600: #3F78A8;
  --azzurro-700: #2F5F89;
  --azzurro-800: #274D6F;
  --azzurro-900: #213F59;
  --gold: #B68A35;
  --ink: #0B1220;
  --stone: #5E6673;
  --sand: #F7F6F3;
  --line: #E7E5E1;
  --white: #FFFFFF;
  --shadow-soft: 0 24px 64px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 2px 10px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1100px 600px at 50% -10%, var(--azzurro-100), transparent 60%),
    var(--sand);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 40px 20px;
}

.page {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-link {
  align-self: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms ease;
}

.back-link:hover {
  color: var(--azzurro-700);
}

.card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 52px 44px 44px;
  text-align: center;
}

.logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 22px;
}

.brand-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0;
}

.brand-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azzurro-700);
  margin: 8px 0 26px;
}

.tagline {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.subtext {
  font-size: 14px;
  line-height: 1.5;
  color: var(--stone);
  margin: 0 0 36px;
}

.portals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .portals {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 40px 24px 32px;
  }
}

.portal-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 20px 20px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.portal-link:hover {
  transform: translateY(-2px);
}

.portal-link:active {
  transform: translateY(0);
}

.portal-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.portal-label {
  font-size: 15px;
  font-weight: 700;
}

.portal-hint {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.85;
}

.portal-primary {
  background: var(--azzurro-700);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.portal-primary:hover {
  background: var(--azzurro-800);
}

.portal-secondary {
  background: var(--azzurro-50);
  color: var(--azzurro-900);
  border: 1px solid var(--azzurro-100);
}

.portal-secondary:hover {
  background: var(--azzurro-100);
}

.portal-secondary .portal-hint {
  color: var(--stone);
}

footer {
  margin-top: 32px;
  font-size: 12px;
  color: var(--stone);
  text-align: center;
}
