/**
 * Portal de acesso (/portal) — alinhado ao tema do painel DataPulseX
 */
body.portal-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.portal-page {
    background-color: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Instrument Sans', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    margin: 0;
    padding: 32px 20px 48px;
    -webkit-font-smoothing: antialiased;
}

.portal-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(94, 234, 212, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 100% 30%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
}

.portal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-title {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    margin: 0 0 12px;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.portal-title .portal-grad {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-sub {
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
    margin: 0 0 40px;
    max-width: 520px;
    line-height: 1.5;
}

.portal-cards {
    display: flex;
    gap: 22px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.portal-card {
    flex: 1 1 300px;
    max-width: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(167, 139, 250, 0.1);
    background: var(--glass-hover);
}

.portal-card i {
    font-size: 52px;
    color: var(--accent-cyan);
    margin-bottom: 22px;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 0 18px rgba(94, 234, 212, 0.25));
}

.portal-card:hover i {
    transform: scale(1.06);
}

.portal-card h3 {
    font-size: 22px;
    margin: 0 0 12px;
    font-weight: 700;
}

.portal-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
    flex: 1;
}

.portal-card .btn-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: 1px solid rgba(94, 234, 212, 0.45);
    color: var(--accent-cyan);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.portal-card:hover .btn-portal {
    background: var(--gradient-glow);
    color: #020617;
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.3);
}

.portal-back {
    margin-top: 44px;
    text-align: center;
}

.portal-back a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.portal-back a:hover {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .portal-cards {
        flex-direction: column;
    }
    .portal-card {
        max-width: none;
    }
}
