/* Portal home page — builds on /shared/tokens.css. */

.portal {
  padding-top: 2rem;
  padding-bottom: 3rem;
  max-width: var(--cbm-container-narrow);
}

.portal__header h1 {
  color: var(--cbm-navy);
  font-family: var(--cbm-font-serif);
  margin-bottom: 0.25rem;
}
.portal__sub { color: var(--cbm-text); margin-top: 0; }

/* Login */
.portal__login {
  max-width: 420px;
  margin: 2rem auto;
  background: var(--cbm-surface);
  padding: 2rem;
  border-radius: var(--cbm-radius);
  border: 1px solid var(--cbm-border);
}
.portal__login h2 { color: var(--cbm-navy); margin-top: 0; }

/* The portal doesn't load wizard.css, so the login/reset message styles live
   here. */
.portal__login .form-error { color: var(--cbm-danger); font-weight: 600; margin-top: 1rem; }
.portal__login .form-success { color: var(--cbm-success); font-weight: 600; margin-top: 1rem; }

.portal__forgot { margin: 0.9rem 0 0; font-size: var(--cbm-text-sm); }
.portal__forgot a { color: var(--cbm-blue); }
.portal__forgot a:hover { color: var(--cbm-blue-dark); text-decoration: underline; }

/* Home */
.portal__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cbm-border);
}
.portal__who { color: var(--cbm-slate-700); }

/* Section labels: clearly larger than the link items beneath them, with a
   rule underneath so each group reads as its own block at a glance. */
.portal__home h2 {
  color: var(--cbm-navy);
  font-family: var(--cbm-font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--cbm-border);
}
.portal__list { list-style: none; margin: 0; padding: 0; }
.portal__list li { margin: 0.45em 0; }
.portal__list a { color: var(--cbm-blue); font-weight: 400; font-size: 1rem; }
.portal__list a:hover { color: var(--cbm-blue-dark); text-decoration: underline; }

.shortcut {
  background: var(--cbm-surface);
  border: 1px solid var(--cbm-border);
  border-radius: 4px;
  padding: 0.05em 0.4em;
  font-size: 0.85em;
  color: var(--cbm-slate-700);
}

/* Launcher tiles (Directories + Applications) — the "windows" you open. */
.portal__hint { color: var(--cbm-slate-700); font-size: var(--cbm-text-sm); margin: 0 0 0.75rem; }
.portal__anahead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.portal__analink { font-size: var(--cbm-text-sm); color: var(--cbm-blue, #1b6ec2); text-decoration: none; white-space: nowrap; }
.portal__analink:hover { text-decoration: underline; }
#portalDash { margin-bottom: 1.5rem; }
.portal__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}
.portal__tile {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cbm-border);
  border-left: 4px solid var(--cbm-navy);
  border-radius: var(--cbm-radius);
  background: var(--cbm-surface);
  color: var(--cbm-navy);
  text-decoration: none;
  font-weight: 600;
  transition: box-shadow 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
.portal__tile:hover {
  border-left-color: var(--cbm-blue);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.portal__tile-title { font-size: 1.05rem; }
/* Birthday celebration overlay (portal/birthday.js) — a mentor signing in on
   their birthday sees this over the whole window before their screen. */
.bday {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 105%, rgba(23, 59, 96, 0.55) 0%, rgba(6, 14, 28, 0.97) 60%),
    #060e1c;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}
.bday--in { opacity: 1; }
.bday--out { opacity: 0; }

.bday__sky { position: absolute; inset: 0; width: 100%; height: 100%; }

.bday__card {
  position: relative;           /* above the canvas */
  text-align: center;
  color: #fff;
  max-width: 34rem;
  padding: 1rem;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.5s ease;
}
.bday--in .bday__card { transform: none; opacity: 1; }

.bday__eyebrow {
  margin: 0 0 0.75rem;
  font-size: var(--cbm-text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cbm-gold);
}
.bday__title {
  margin: 0;
  font-family: var(--cbm-font-serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 28px rgba(203, 150, 59, 0.55);
}
.bday__name {
  margin: 0.25rem 0 0;
  font-family: var(--cbm-font-serif);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 600;
  color: var(--cbm-gold);
}
/* Announcement mode ("Wish <name> a Happy Birthday!"): the whole sentence is
   the headline, so it sets a little smaller than the own-birthday title and the
   name carries the gold. */
.bday__title--wish {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  max-width: 22ch;
  margin: 0 auto;
}
.bday__name-inline { color: var(--cbm-gold); }

/* "Also celebrating today: …" — the secondary line when it is your birthday
   AND a colleague's. */
.bday__also {
  margin: -0.6rem 0 1.5rem;
  font-size: var(--cbm-text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.bday__msg {
  margin: 1.1rem auto 1.6rem;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.bday__go {
  font: inherit;
  font-weight: 600;
  color: #10203a;
  background: var(--cbm-gold);
  border: 0;
  border-radius: var(--cbm-radius);
  padding: 0.8rem 1.9rem;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
.bday__go:hover { background: #e0aa4c; transform: translateY(-1px); }
.bday__go:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .bday, .bday__card { transition: none; }
  .bday, .bday--in .bday__card { opacity: 1; }
  .bday__card { transform: none; }
}

/* My Email tile unread badge (§4.2.2). */
.portal__tile-badge {
  margin-left: auto;
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--cbm-blue, #1a5fb4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}
