﻿.welcome-page .logo {
  width: 64px;
}

.legal-consent .legal-consent-long {
    display: none;
}

.legal-consent-long, .legal-consent-short, .legal-consent p {
    display: inline;
}
.legal-consent p {
    margin-bottom: 0;
}

.legal-consent-toggle {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
    text-decoration: underline;
}

/* Keep the checkbox at its natural size when the consent text wraps to
   multiple lines: flexbox default (stretch) would grow the checkbox to match
   the taller label. */
.register-page .checkbox-group {
    align-items: flex-start;
}

.icon-banner {
  width: 32px;
}

.body-container {
  margin-top: 60px;
  padding-bottom: 40px;
}

.welcome-page li {
  list-style: none;
  padding: 4px;
}

.logged-out-page iframe {
  display: none;
  width: 0;
  height: 0;
}

.grants-page .card {
  margin-top: 20px;
  border-bottom: 1px solid lightgray;
}
.grants-page .card .card-title {
  font-size: 120%;
  font-weight: bold;
}
.grants-page .card .card-title img {
  width: 100px;
  height: 100px;
}
.grants-page .card label {
  font-weight: bold;
}

.logged-out-LFC24_SITE {
    text-align: center;
}

.logged-out-LFC24_SITE small {
    display: block;
}

.logged-out-LFC25_SITE {
    text-align: center;
}

.logged-out-LFC25_SITE small {
    display: block;
}

/* Registration code page: the countdown and the resend link share one centred line under Verify. */
.verify-code-page .register-back-button .btn {
    padding-left: 0;
    padding-right: 0;
}

.verify-code-page .verify-code-intro {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.verify-code-page .verify-code-resend {
    clear: both;
    padding-top: 1.25rem;
    text-align: center;
}

.verify-code-page .verify-code-countdown {
    margin: 0;
    opacity: 0.8;
}

.verify-code-page .verify-code-resend-button,
.verify-code-page .verify-code-resend-button:hover,
.verify-code-page .verify-code-resend-button:focus {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    box-shadow: none;
}

/* Event stylesheets give every .btn a larger font with !important; the link keeps the line's size. */
.verify-code-page .verify-code-resend-button {
    font-size: inherit !important;
}

.verify-code-page .verify-code-resend-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ============================================================
   Consent page (Pages/Consent).
   Generic and themeable: an event stylesheet restyles it by overriding
   the --consent-* properties on .consent-page. Text colour, fonts, the card
   and the buttons come from the event's .card / .btn rules as on the
   sign-in pages. Defaults use translucent greys so they read on light and
   dark cards alike.
   ============================================================ */
.consent-page {
    --consent-max-width: 560px;
    --consent-spacing: 1rem;
    --consent-radius: 10px;
    --consent-accent: #0d6efd;
    --consent-row-bg: rgba(127, 127, 127, 0.08);
    --consent-row-border: rgba(127, 127, 127, 0.3);
    --consent-muted-opacity: 0.75;
    --consent-badge-bg: var(--consent-accent);
    --consent-badge-fg: #ffffff;
    --consent-logo-size: 64px;

    max-width: var(--consent-max-width);
    margin: 0 auto;
}

.consent-card .card-body {
    padding: calc(var(--consent-spacing) * 2);
}

.consent-header {
    text-align: center;
    margin-bottom: calc(var(--consent-spacing) * 1.5);
}

.consent-client-logo {
    width: var(--consent-logo-size);
    height: var(--consent-logo-size);
    object-fit: contain;
    margin-bottom: var(--consent-spacing);
}

.consent-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.consent-subtitle {
    margin: 0;
    opacity: var(--consent-muted-opacity);
}

.consent-section {
    margin-bottom: calc(var(--consent-spacing) * 1.25);
}

.consent-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    opacity: var(--consent-muted-opacity);
}

.consent-scopes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.consent-scope {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem var(--consent-spacing);
    background: var(--consent-row-bg);
    border: 1px solid var(--consent-row-border);
    border-radius: var(--consent-radius);
}

.consent-scope + .consent-scope {
    margin-top: 0.5rem;
}

.consent-scope--emphasize {
    border-color: var(--consent-accent);
}

.consent-check {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    accent-color: var(--consent-accent);
}

.consent-scope-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: 0;
    cursor: pointer;
}

.consent-scope--required .consent-scope-text {
    cursor: default;
}

.consent-scope-name {
    font-weight: 600;
}

.consent-badge {
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: var(--consent-badge-bg);
    color: var(--consent-badge-fg);
}

.consent-scope-description,
.consent-scope-resources {
    flex-basis: 100%;
    font-size: 0.9rem;
    opacity: var(--consent-muted-opacity);
}

.consent-remember {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: calc(var(--consent-spacing) * 1.5);
}

.consent-remember-label {
    margin: 0;
}

.consent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consent-actions .btn {
    width: 100%;
}

.consent-client-link {
    margin: var(--consent-spacing) 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.consent-client-link a {
    color: inherit;
    text-decoration: underline;
}
