:root {
    --crea-azul: #2563eb;
    --crea-azul-escuro: #1d4ed8;
    --crea-preto: #111111;
    --crea-cinza: #6b7280;
    --crea-branco: #ffffff;
    --crea-accent: #e85d04;
    --transicao: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    color: var(--crea-preto);
    background: var(--crea-branco);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cq-wrap {
    width: min(720px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.site-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 0 2rem;
}

.hero-section {
    width: 100%;
}

.site-footer {
    color: var(--crea-cinza);
    padding: 1.25rem 0 2rem;
    text-align: center;
    font-size: 0.8125rem;
}

.site-footer p {
    margin: 0;
}

.site-footer p + p {
    margin-top: 0.25rem;
}

.landing {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    color: var(--crea-preto);
}

.hero-tagline {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0 auto 1.75rem;
    max-width: 34rem;
    color: var(--crea-preto);
}

.hero-tagline .accent {
    color: var(--crea-accent);
}

.hero-tagline .nowrap {
    white-space: nowrap;
}

.hero-description {
    font-size: 1rem;
    color: var(--crea-cinza);
    max-width: 420px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-portal,
.btn-portal-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.95rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.btn-portal {
    background: var(--crea-azul);
    border: none;
    color: var(--crea-branco);
}

.btn-portal:hover {
    background: var(--crea-azul-escuro);
}

.btn-arrow {
    font-size: 1.1em;
    line-height: 1;
}

.btn-text {
    color: var(--crea-preto);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom-color: var(--crea-preto);
}

.form-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.25rem 0 0;
    font-size: 0.9375rem;
}

.form-links a {
    color: var(--crea-preto);
    font-weight: 600;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-section {
    width: 100%;
    padding: 1rem 0;
}

.portal-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.form-logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.form-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

.portal-card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.portal-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}

.portal-card-subtitle {
    color: var(--crea-cinza);
    margin: 0;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}

.portal-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
}

.portal-input:focus {
    outline: none;
    border-color: var(--crea-azul);
    background: var(--crea-branco);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.portal-input[readonly] {
    background: #f3f4f6;
    color: #4b5563;
}

.form-text {
    color: var(--crea-cinza);
    font-size: 0.8125rem;
    margin-top: 0.4rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-portal-outline {
    border: 1px solid #e5e7eb;
    color: var(--crea-preto);
    background: transparent;
}

.btn-portal-outline:hover {
    background: #f3f4f6;
}

.portal-alert {
    border-radius: 12px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.portal-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .hero-logo {
        width: 168px;
        height: 168px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-portal,
    .form-actions .btn-portal-outline {
        width: 100%;
    }
}
