@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/outfit-latin-700-normal.woff2") format("woff2");
}

/* Tokens: the sign-in page's pinned values (portal/src/pages/login.css + src/styles/tokens.css). */
:root {
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r-pill: 9999px;
  --r-card: 16px;

  --bg: #f9fafb;
  --glass: rgba(255, 255, 255, 0.82);
  --ink: #0f172a;
  --heading: #0f172a;
  --graphite: #475569;
  --muted: #64748b;
  --hairline: #e2e8f0;
  --hairline-strong: #cbd5e1;
  --mist-2: #f1f5f9;
  --ieee: #00629b;
  --ieee-cyan: #00b5e2;
  --ieee-gradient: linear-gradient(90deg, #00629b 0%, #00b5e2 100%);
  --ieee-wash: #e6f1f8;
  --hero-glow-1: rgba(0, 98, 155, 0.16);
  --hero-glow-2: rgba(0, 181, 226, 0.14);
  --hero-dots: rgba(15, 23, 42, 0.07);
  --hero-sheet-shadow: 0 40px 80px -28px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06), 0 0 120px -30px rgba(0, 181, 226, 0.3);
  --focus: #00629b;
  --faint: #64748b; /* 4.6:1 on the footer band */
  --ft-bg: rgba(255, 255, 255, 0.5);
  --ft-band: rgba(248, 250, 252, 0.5);
  --ft-chip: #f1f5f9;
  --inverse-bg: #0f172a;
  --inverse-ink: #ffffff;

  /* The paper voucher stays white in both themes. */
  --doc-bg: #ffffff;
  --doc-ink: #111827;
  --doc-muted: #4b5563;
  --doc-faint: #9ca3af;
  --doc-rule: #e5e7eb;
  --doc-rule-strong: #374151;
  --doc-wash: #f3f4f6;
  --sign-ink: #1e3a8a;
}
html.dark {
  --bg: #050505;
  --glass: rgba(5, 5, 5, 0.78);
  --ink: #f8fafc;
  --heading: #f8fafc;
  --graphite: #cbd5e1;
  --muted: #94a3b8;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --mist-2: #17191c;
  --ieee: #4aa8e3;
  --ieee-gradient: linear-gradient(90deg, #4aa8e3 0%, #22c3ee 100%);
  --ieee-wash: rgba(0, 181, 226, 0.12);
  --hero-glow-1: rgba(0, 98, 155, 0.45);
  --hero-glow-2: rgba(0, 181, 226, 0.22);
  --hero-dots: rgba(255, 255, 255, 0.09);
  --hero-sheet-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 120px -20px rgba(0, 181, 226, 0.35);
  --focus: #22c3ee;
  --faint: #94a3b8;
  --ft-bg: rgba(2, 6, 23, 0.5);
  --ft-band: rgba(0, 0, 0, 0.2);
  --ft-chip: rgba(255, 255, 255, 0.05);
  --inverse-bg: #f1f5f9;
  --inverse-ink: #0f172a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
h1,
p {
  margin: 0;
}
a {
  color: var(--ieee);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.cs {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.cs-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% 8%, var(--hero-glow-1), transparent 60%),
    radial-gradient(700px 520px at 88% 92%, var(--hero-glow-2), transparent 60%),
    radial-gradient(1px 1px at 20px 20px, var(--hero-dots) 1px, transparent 0) 0 0 / 28px 28px;
}

/* Header */
.cs-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(24px, 6vw, 96px);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.cs-logo {
  height: 34px;
  width: auto;
  flex: none;
}
html.dark .cs-logo {
  filter: brightness(0) invert(1);
}
.cs-chip {
  height: 28px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--glass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--graphite);
}
.theme-toggle {
  margin-left: auto;
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover {
  background: var(--mist-2);
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.theme-toggle:active {
  transform: scale(0.94);
}
.theme-toggle:focus-visible {
  border-radius: 50%;
}
.turns {
  display: grid;
  place-items: center;
}
.turn {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
html:not(.dark) .turn[data-icon="sun"] {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
html.dark .turn[data-icon="moon"] {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* Main */
.cs-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 32px clamp(24px, 6vw, 96px) 64px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}
.cs-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 560px;
  animation: rise 700ms var(--ease) both;
}
/* "Coming soon" as a rubber stamp, like the ones on a paper voucher. It lands with a press. */
.stamp {
  display: inline-block;
  padding: 7px 14px 6px;
  border: 2px solid currentColor;
  border-radius: 6px;
  outline: 1px solid currentColor;
  outline-offset: 3px;
  color: var(--ieee);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(-4deg);
  transform-origin: left center;
  animation: stamp 520ms 350ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.cs h1 {
  margin-top: 24px;
  color: var(--heading);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.text-gradient {
  font-weight: 700;
  background: var(--ieee-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cs-sub {
  margin-top: 20px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 30em;
}

/* The main button: the sign-in page's .lbtn-primary, the inverse of the page. */
.cs-btn {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px 0 28px;
  border-radius: var(--r-pill);
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--ieee-cyan) 60%, transparent);
  transition: transform 180ms var(--ease), box-shadow 240ms var(--ease);
}
.cs-btn:hover {
  box-shadow: 0 14px 36px -10px color-mix(in srgb, var(--ieee-cyan) 80%, transparent);
}
.cs-btn:active {
  transform: scale(0.98);
}
.cs-btn svg {
  transition: transform 180ms var(--ease);
}
.cs-btn:hover svg {
  transform: translateX(3px);
}
.cs-hint {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.cs-features {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-features li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--glass);
  font-size: 0.8125rem;
  color: var(--graphite);
}

.cs-contact {
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--muted);
}
.cs-contact a {
  font-weight: 600;
  text-decoration: none;
}
.cs-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The voucher signing itself: same art as the sign-in page. Sample values only. */
.cs-art {
  display: grid;
  place-items: center;
  animation: rise 900ms 150ms var(--ease) both;
}
.art-sheet {
  width: min(500px, 100%);
  background: var(--doc-bg);
  color: var(--doc-ink);
  border-radius: 10px;
  padding: 36px 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg) rotate(-1.5deg);
  box-shadow: var(--hero-sheet-shadow);
  font-family: "Times New Roman", Georgia, serif;
}
.art-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.art-head img {
  height: 30px;
  width: auto;
}
.art-head span {
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 15px;
}
.art-no {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.art-no b {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border: 1px solid var(--doc-rule-strong);
}
.art-payee {
  font-size: 13px;
}
.art-lines {
  border: 1px solid var(--doc-rule-strong);
  font-size: 13px;
}
.art-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}
.art-row + .art-row {
  border-top: 1px solid var(--doc-rule);
}
.art-row-h {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--doc-wash);
}
.art-row b {
  font-family: var(--font);
  font-weight: 400;
}
.art-total {
  font-weight: 700;
  border-top: 1px solid var(--doc-rule-strong) !important;
}
.art-sign {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.art-slot {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--doc-muted);
}
.art-ink {
  height: 38px;
  width: 100%;
  overflow: visible;
}
.art-ink path {
  fill: none;
  stroke: var(--sign-ink);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: ink 1.1s var(--ease) forwards;
  animation-delay: calc(900ms + var(--i) * 900ms);
}
.art-rule {
  border-bottom: 1.5px dotted var(--doc-faint);
  margin: 2px 0 6px;
}
.art-slot.live .art-rule {
  border-bottom: 1.5px dashed #00629b;
}

/* Footer: the same layout as the ieee.lk footer. Three columns on glass, then a band with the
   IEEE policy links, the copyright and the credit. */
.cs-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.ft {
  position: relative;
  border-top: 1px solid var(--hairline);
  background: var(--ft-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.ft a {
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.ft-cols {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.ft-logo {
  height: 32px;
  width: auto;
  display: block;
}
html.dark .ft-logo {
  filter: brightness(0) invert(1);
}
.ft-about {
  margin-top: 24px;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  font-weight: 500;
  color: var(--muted);
}
.ft-social {
  margin-top: 24px;
  display: flex;
  gap: 16px;
}
.ft-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ft-chip);
  color: var(--graphite);
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.ft-social a:hover {
  background: var(--brand, #00629b);
  color: #ffffff;
}
.ft h2 {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}
.ft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}
.ft-list a {
  display: inline-block;
  color: var(--muted);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}
.ft-list a:hover {
  color: var(--ieee);
  transform: translateX(4px);
}
.ft-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.ft-contact svg {
  flex: none;
  margin-top: 1px;
  color: var(--ieee);
}
.ft-band {
  border-top: 1px solid var(--hairline);
  background: var(--ft-band);
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
}
.ft-policy {
  max-width: 1280px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  font-size: 0.75rem;
  font-weight: 700;
}
.ft-policy a {
  color: var(--graphite);
}
.ft-policy a:hover {
  color: var(--ieee);
}
.ft-legal {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--faint);
}
.ft-credit {
  margin-top: 8px;
}
.ft-credit a {
  color: var(--graphite);
  font-weight: 400;
}
.ft-credit a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
  }
}
@keyframes ink {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-4deg) scale(1.7);
  }
  60% {
    opacity: 1;
    transform: rotate(-4deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .art-ink path {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 767.98px) {
  .ft-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 48px 16px;
  }
  .ft-band {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ft-policy {
    gap: 12px 24px;
  }
  .ft-legal {
    font-size: 0.6875rem;
  }
}
@media (max-width: 960px) {
  .cs-main {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }
  .cs-art {
    display: none;
  }
}
@media (max-width: 520px) {
  .cs-top {
    padding: 20px 16px;
  }
  .cs-logo {
    height: 26px;
  }
  .cs-chip {
    display: none;
  }
  .cs-main {
    padding: 16px 16px 48px;
  }
}

/* Per-item values that used to be inline style attributes (the CSP allows no inline styles). */
.art-slot:nth-child(1) {
  --i: 0;
}
.art-slot:nth-child(2) {
  --i: 1;
}
.art-slot:nth-child(3) {
  --i: 2;
}
.ft-social a[data-net="facebook"] {
  --brand: #1877f2;
}
.ft-social a[data-net="linkedin"] {
  --brand: #0077b5;
}
.ft-social a[data-net="youtube"] {
  --brand: #ff0000;
}
.ft-social a[data-net="instagram"] {
  --brand: #e4405f;
}
