/**
 * AMEI Login Info Box Styles
 * Estilos para a caixa de informação do botão "Entrar"
 * 
 * @package AMEI_WP_Gateway
 * @version 1.0.0
 */

/* ============================================
   CAIXA DE INFORMAÇÃO
   ============================================ */

.sb-login__content {
    width: 235px;
    height: 100px;
    margin-top: -8px;
    position: absolute;
    right: 1%;
    top: 70px;
    display: none; /* Inicialmente oculta, será mostrada via JavaScript */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    background-color: #ffffff;
    border: 1px solid #8282f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 16px;
    box-sizing: border-box;
}

/* Triângulo apontador - contorno externo */
.sb-login__content .triangle {
    position: absolute;
    top: -9px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #8282f8;
    z-index: 1;
}

/* Triângulo interno branco (preenchimento) */
.sb-login__content .triangle::after {
    content: '';
    position: absolute;
    top: 1px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    z-index: 2;
}

/* Botão de fechar */
.sb-login__content__closed {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #005eb8;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s ease;
}

.sb-login__content__closed:focus, .sb-login__content__closed:hover {
    color: #003d7a !important;
    background-color: #ffffff !important;
}

.sb-login__content__closed:focus {
    outline: 2px solid #005eb8;
    outline-offset: 2px;
    border-radius: 2px;
}

.sb-login__content__closed::before {
    content: '×';
    font-size: 24px;
    line-height: 1;
}

/* Título principal */
.sb-login__content .loginp {
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 27.3px;
    color: #005eb8de;
    margin-top: 16px;
    margin-bottom: 8px;
    text-align: center;
}

/* Descrição */
.sb-login__content .loginh {
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16.3px;
    color: #5c6c7d;
    margin-top: -3px;
    height: 33px;
    width: 180px;
    text-align: center;
    margin-bottom: 0;
}

/* Versão mobile (oculta por padrão) */
.sb-login__content .loginh__mobile {
    display: none;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .sb-login__content {
        width: 180px;
        height: 100px;
        right: 0;
        top: 60px;
        padding: 12px;
    }
    
    .sb-login__content .loginh {
        width: 100%;
        height: auto;
        font-size: 12px;
    }
    
    .sb-login__content .loginp {
        font-size: 14px;
        margin-top: 12px;
    }
    
    .sb-login__content .loginh__mobile {
        display: block;
        font-family: Lato, sans-serif;
        font-size: 13px;
        font-weight: 400;
        color: #5c6c7d;
        margin-top: 4px;
        text-align: center;
    }
    
    .sb-login__content .loginh {
        display: none;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

/* Classe .sbAccessibilityFontSize pode ser estendida com JavaScript para aumentar tamanho da fonte */

/* ============================================
   ANIMAÇÕES
   ============================================ */

.sb-login__content {
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
