/*
 * Public pages: login, password and error pages (layouts/empty, Stack theme bundle underneath)
 * and the public meeting pages (reunioes/publico/layout). Tokens live in /css/gcu-tokens.css.
 * Sizes are in px: the Stack bundle sets html to 87.5% / 81.25%, so rem tokens would drift here.
 */
html body {
    color: var(--gp-text);
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
button, input, select, textarea {
    font-family: var(--font-sans);
}

a {
    color: var(--gp-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--gp-placeholder);
    opacity: 1;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none !important;
    box-shadow: var(--gp-focus-ring) !important;
}

@media (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.gp-sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* ---------------------------------------------------------------- Shared controls */
.gp-public .gp-field {
    margin: 0 0 16px;
}

.gp-public .gp-label {
    color: var(--gp-text);
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0 0 4px;
    text-transform: none;
}

.gp-public .gp-label__hint {
    color: var(--gp-text-muted);
    font-weight: 400;
}

.gp-public .req {
    color: var(--gp-danger);
    font-weight: 600;
    margin-left: 2px;
}

.gp-public .gp-input {
    background: var(--gp-surface);
    border: 1px solid var(--gp-field-border);
    border-radius: var(--r-sm);
    box-shadow: none;
    color: var(--gp-text);
    display: block;
    font: inherit;
    font-size: 14px;
    height: 44px;
    line-height: 20px;
    margin: 0;
    padding: 0 12px;
    width: 100%;
}

.gp-public textarea.gp-input {
    height: auto;
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical;
}

.gp-public .gp-input:focus {
    border-color: var(--gcu-indigo);
}

.gp-public .gp-input[aria-invalid="true"] {
    border-color: var(--gp-danger);
}

.gp-public .field-error {
    color: var(--gp-danger-fg);
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    margin: 4px 0 0;
    padding: 0;
    text-align: left;
}

.gp-public .gp-help {
    color: var(--gp-text-muted);
    display: block;
    font-size: 12px;
    line-height: 16px;
    margin: 4px 0 0;
}

.gp-public .gp-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    height: auto;
    justify-content: center;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0;
    min-height: 44px;
    padding: 11px 20px;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.gp-public .gp-btn--block {
    width: 100%;
}

.gp-public .gp-btn--primary,
.gp-public .gp-btn--primary:visited {
    background: var(--gp-primary);
    border-color: var(--gp-primary);
    color: #fff;
}

.gp-public .gp-btn--primary:hover {
    background: var(--gp-primary-hover);
    border-color: var(--gp-primary-hover);
    color: #fff;
}

.gp-public .gp-btn--accent,
.gp-public .gp-btn--accent:visited {
    background: var(--gp-warning);
    border-color: var(--gp-warning);
    color: var(--gcu-indigo);
}

.gp-public .gp-btn--accent:hover {
    background: var(--gp-warning-hover);
    border-color: var(--gp-warning-hover);
    color: var(--gcu-indigo);
}

.gp-public .gp-btn--danger-outline {
    background: var(--gp-surface);
    border-color: var(--gp-danger);
    color: var(--gp-danger-fg);
}

.gp-public .gp-btn--danger-outline:hover {
    background: var(--gp-danger-bg);
}

.gp-public .gp-btn[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

.gp-public .gp-callout {
    border-radius: var(--r-sm);
    font-size: 13px;
    line-height: 20px;
    margin: 0 0 16px;
    padding: 12px 16px;
    text-align: left;
}

.gp-public .gp-callout p {
    margin: 0;
}

.gp-public .gp-callout--success { background: var(--gp-success-bg); color: var(--gp-success-fg); }
.gp-public .gp-callout--warning { background: var(--gp-warning-bg); color: var(--gp-warning-fg); }
.gp-public .gp-callout--danger { background: var(--gp-danger-bg); color: var(--gp-danger-fg); }
.gp-public .gp-callout--info { background: var(--gp-info-bg); color: var(--gp-info-fg); }

.gp-public .gp-form-errors {
    background: var(--gp-danger-bg);
    border: 0;
    border-radius: var(--r-sm);
    color: var(--gp-danger-fg);
    font-size: 13px;
    line-height: 20px;
    margin: 0 0 16px;
    padding: 12px 16px;
    text-align: left;
}

.gp-public .gp-form-errors ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.gp-public .gp-form-errors a {
    color: inherit;
    text-decoration: underline;
}

/* ---------------------------------------------------------------- Login, password and error shell */
.gp-auth {
    align-items: center;
    background: var(--gcu-indigo);
    display: flex;
    flex-direction: column;
    isolation: isolate;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 32px 16px;
    position: relative;
}

.gp-auth__bg {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: -2;
}

.gp-auth--photo::before {
    background: linear-gradient(160deg, rgba(0, 9, 119, .9) 0%, rgba(0, 9, 119, .74) 55%, rgba(0, 0, 247, .62) 100%);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.gp-auth__card {
    background: var(--gp-surface);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-modal);
    color: var(--gp-text);
    font-size: 13px;
    line-height: 20px;
    max-width: 400px;
    padding: 32px;
    position: relative;
    text-align: left;
    width: 100%;
}

/* Brand motif: the triangular cut of the GCU grid, as a small corner tab */
.gp-auth__card::before {
    background: var(--gp-primary);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    content: "";
    height: 24px;
    left: 0;
    position: absolute;
    top: 0;
    width: 24px;
}

.gp-auth__logo {
    display: block;
    height: 40px;
    margin: 0 0 24px;
    width: auto;
}

.gp-auth .gp-auth__overline {
    color: var(--gp-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 16px;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.gp-auth .gp-auth__title {
    color: var(--gp-text-strong);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 28px;
    margin: 0 0 16px;
}

.gp-auth .gp-auth__lead {
    color: var(--gp-text-muted);
    font-size: 13px;
    line-height: 20px;
    margin: -8px 0 16px;
}

.gp-auth form {
    margin: 0;
}

.gp-auth .gp-btn--block {
    margin-top: 8px;
}

.gp-auth__links {
    border-top: 1px solid var(--gp-border);
    color: var(--gp-text-muted);
    font-size: 12px;
    line-height: 16px;
    list-style: none;
    margin: 24px 0 0;
    padding: 16px 0 0;
}

.gp-auth__links li {
    margin: 0 0 8px;
}

.gp-auth__links li:last-child {
    margin-bottom: 0;
}

.gp-auth__card a:not(.gp-btn) {
    color: var(--gp-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gp-auth__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

/* Error pages: indigo with a blue triangle, white wordmark */
.gp-auth--error::after {
    background: var(--gp-primary);
    bottom: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    content: "";
    height: min(70vw, 520px);
    position: absolute;
    right: 0;
    width: min(70vw, 520px);
    z-index: -1;
}

.gp-error {
    color: #fff;
    max-width: 560px;
    text-align: center;
    width: 100%;
}

.gp-error__logo {
    display: block;
    height: 48px;
    margin: 0 auto 40px;
    width: auto;
}

.gp-auth .gp-error__code {
    color: var(--gcu-cyan);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 16px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.gp-auth .gp-error__title {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 36px;
    margin: 0 0 12px;
}

.gp-auth .gp-error__text {
    color: #fff;
    font-size: 15px;
    line-height: 24px;
    margin: 0 auto 32px;
    max-width: 48ch;
}

@media (max-width: 479px) {
    .gp-auth__card {
        padding: 32px 20px 24px;
    }

    .gp-auth .gp-error__title {
        font-size: 22px;
        line-height: 28px;
    }
}

/* ---------------------------------------------------------------- Public meeting pages */
.gp-meet {
    background: var(--gp-bg);
    color: var(--gp-text);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.gp-meet *,
.gp-meet *::before,
.gp-meet *::after {
    box-sizing: border-box;
}

.gp-meet__top {
    background: var(--gp-surface);
    border-bottom: 1px solid var(--gp-border);
    padding: 12px 16px;
    text-align: center;
}

.gp-meet__top img {
    height: 40px;
    max-width: 70%;
    width: auto;
}

/* The page's guided tour, on the right of the centred logo */
.gp-meet__top {
    position: relative;
}

.gp-meet__help {
    align-items: center;
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--r-sm);
    color: var(--gp-primary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.gp-meet__help:hover {
    background: var(--gp-primary-soft);
}

.gp-meet__help:focus-visible {
    box-shadow: var(--gp-focus-ring);
    outline: none;
}

/* On a phone the button would cover the logo: it goes under it */
@media (max-width: 520px) {
    .gp-meet__help {
        margin-top: 8px;
        position: static;
        transform: none;
    }
}

.gp-meet__main {
    margin: 0 auto;
    max-width: 720px;
    padding: 16px;
}

.gp-meet .cartao {
    background: var(--gp-surface);
    border: 1px solid var(--gp-border);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-card);
    margin: 0 0 16px;
    padding: 20px;
}

.gp-meet h1 {
    color: var(--gp-text-strong);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 28px;
    margin: 0 0 4px;
}

.gp-meet h2 {
    color: var(--gp-text-strong);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 24px;
    margin: 0 0 12px;
}

.gp-meet p {
    margin: 0 0 12px;
}

.gp-meet p:last-child {
    margin-bottom: 0;
}

.gp-meet .suave {
    color: var(--gp-text-muted);
}

.gp-meet .gp-meet__small {
    font-size: 13px;
    line-height: 20px;
}

.gp-meet fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.gp-meet legend {
    padding: 0;
}

.gp-meet .gp-meet__step + .gp-meet__step {
    margin-top: 24px;
}

.gp-meet .dia {
    margin: 0 0 16px;
}

.gp-meet .dia > legend {
    color: var(--gp-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin: 0 0 8px;
}

.gp-meet .vagas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gp-meet .vaga {
    position: relative;
}

.gp-meet .vaga input {
    opacity: 0;
    position: absolute;
}

.gp-meet .vaga span {
    border: 1px solid var(--gp-primary);
    border-radius: var(--r-sm);
    color: var(--gp-primary);
    cursor: pointer;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-height: 44px;
    padding: 10px 16px;
}

.gp-meet .vaga:hover span {
    background: var(--gp-primary-soft);
}

.gp-meet .vaga input:checked + span {
    background: var(--gp-primary);
    color: #fff;
}

.gp-meet .vaga input:focus-visible + span {
    box-shadow: var(--gp-focus-ring);
    outline: none;
}

.gp-meet .linha2 {
    display: grid;
    gap: 0 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .gp-meet .linha2 {
        grid-template-columns: 2fr 1fr;
    }
}

.gp-meet .acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.gp-meet .acoes form {
    margin: 0;
}

.gp-meet .aviso {
    border-radius: var(--r-sm);
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 16px;
    padding: 12px 16px;
}

.gp-meet .cartao .aviso:not(:first-child) {
    margin-top: 16px;
}

.gp-meet .aviso.erro { background: var(--gp-danger-bg); color: var(--gp-danger-fg); }
.gp-meet .aviso.ok { background: var(--gp-success-bg); color: var(--gp-success-fg); }

.gp-meet .armadilha {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.gp-meet dl {
    align-items: baseline;
    display: grid;
    gap: 4px 16px;
    grid-template-columns: 1fr;
    margin: 16px 0 0;
}

.gp-meet dl + p {
    margin-top: 16px;
}

.gp-meet dt {
    color: var(--gp-text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
}

.gp-meet dd {
    margin: 0 0 8px;
}

@media (min-width: 560px) {
    .gp-meet dl {
        grid-template-columns: max-content 1fr;
    }

    .gp-meet dd {
        margin: 0;
    }
}

.gp-meet__foot {
    color: var(--gp-text-muted);
    font-size: 13px;
    padding: 16px;
    text-align: center;
}

.gp-meet__foot a {
    color: var(--gp-text-muted);
}

.gp-meet .aviso + dl {
    margin-top: 0;
}

.gp-meet .gp-meet__note {
    margin: 12px 0 0;
}

.gp-meet .cartao > .aviso:last-child,
.gp-meet #estado > .aviso:last-child {
    margin-bottom: 0;
}
