/* ==========================================================================
   Atalhos de acesso entre portais (telas de login)
   Botões "ghost" com acento primário: secundários em relação ao botão de
   entrar, mas com presença, hover e foco claros.
   ========================================================================== */

.portal-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .625rem;
}

@media (max-width: 460px) {
    .portal-switches {
        grid-template-columns: 1fr;
    }
}

.portal-switch {
    --ps-accent: var(--bs-primary, #0d6efd);
    --ps-tint: rgba(13, 110, 253, .07);
    --ps-tint-border: rgba(13, 110, 253, .45);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 44px;
    padding: .625rem 1rem;
    border: 1px solid var(--border-color, rgba(15, 23, 42, .14));
    border-radius: 12px;
    background: transparent;
    color: var(--text-main, #1f2937);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        transform .18s ease;
}

.portal-switch > i {
    color: var(--ps-accent);
    font-size: .95em;
    transition: transform .18s ease;
}

.portal-switch:hover {
    border-color: var(--ps-tint-border);
    background: var(--ps-tint);
    color: var(--ps-accent);
    box-shadow: 0 6px 16px -8px rgba(13, 110, 253, .5);
    text-decoration: none;
}

.portal-switch:hover > i {
    transform: translateX(1px);
}

.portal-switch:focus-visible {
    outline: 0;
    border-color: var(--ps-tint-border);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .22);
}

.portal-switch:active {
    transform: scale(.985);
}

/* Rótulo "Acesse também" com linhas laterais */
.portal-switch-sep {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
    color: var(--text-muted, #6c757d);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-switch-sep::before,
.portal-switch-sep::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color, #e5e7eb);
}

/* No modo escuro o lavado azul precisa de mais contraste */
[data-theme="dark"] .portal-switch {
    --ps-tint: rgba(59, 130, 246, .14);
    --ps-tint-border: rgba(96, 165, 250, .55);
}

[data-theme="dark"] .portal-switch:hover {
    color: #93c5fd;
}

@media (prefers-reduced-motion: reduce) {
    .portal-switch,
    .portal-switch > i {
        transition: none;
    }
}
