/* ============================================================
 * UFCG Login Customizer — Estilos da tela de login
 * ============================================================ */

/* --- Containers principais isolados do Bootstrap/Custom CSS --- */
.ufcg-login-row {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ufcg-login-column {
    width: 100% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    padding: 10px !important;
}

/* --- Classe utilitária de ocultação --- */
.ufcg-login-hidden {
    display: none !important;
}

/* --- Container do seletor de método --- */
.ufcg-method-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 10px;
    width: 100%;
}

/* --- Título --- */
.ufcg-method-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--tblr-body-color, #1e293b);
    margin-bottom: 8px;
    text-align: center;
}

/* --- Botões de método --- */
.ufcg-method-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1.5px solid var(--tblr-border-color, #d1d5db);
    border-radius: 8px;
    background: var(--tblr-bg-surface, #fff);
    color: var(--tblr-body-color, #1e293b);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.ufcg-method-btn:hover {
    border-color: var(--tblr-primary, #206bc4);
    box-shadow: 0 2px 8px rgba(32, 107, 196, 0.15);
    transform: translateY(-1px);
}

.ufcg-method-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Ícone genérico dentro do botão */
.ufcg-btn-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* --- Botão Google: destaque especial --- */
#ufcg-btn-google {
    border-color: #4285F4;
    background: #fff;
    font-weight: 600;
}
#ufcg-btn-google:hover {
    background: #f8faff;
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.25);
}

/* --- Botão gov.br --- */
#ufcg-btn-govbr {
    border-color: #1351b4;
    background: #fff;
    font-weight: 600;
}
#ufcg-btn-govbr:hover {
    background: #f0f5ff;
    border-color: #071d41;
    box-shadow: 0 2px 8px rgba(19, 81, 180, 0.2);
}

.ufcg-govbr-brand {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

/* --- Botão Login com senha --- */
#ufcg-btn-login {
    border-color: var(--tblr-border-color, #adb5bd);
    background: var(--tblr-bg-surface, #f8f9fa);
}
#ufcg-btn-login:hover {
    background: var(--tblr-bg-surface-secondary, #eef0f3);
    border-color: var(--tblr-body-color, #495057);
}

/* --- Separador OU --- */
.ufcg-separator {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.ufcg-sep-line {
    flex: 1;
    border: none;
    border-top: 1px solid var(--tblr-border-color, #dee2e6);
    margin: 0;
}

.ufcg-sep-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tblr-secondary, #6c757d);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* --- Botão "Primeiro acesso? Clique aqui" (Destaque) --- */
.ufcg-first-access-wrapper {
    width: 100%;
    margin-bottom: 24px;
}

.ufcg-first-access-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #475569; /* Cinza ardósia claro (como na imagem) */
    border: 1px solid #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ufcg-first-access-btn-large:hover {
    background-color: #334155;
    border-color: #334155;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.ufcg-info-icon {
    font-size: 1.15rem;
}

/* --- Botão Voltar --- */
.ufcg-back-btn {
    margin-bottom: 12px;
}

.ufcg-back-btn a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--tblr-secondary, #6c757d);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ufcg-back-btn a:hover {
    color: var(--tblr-primary, #206bc4);
    background: rgba(32, 107, 196, 0.06);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .ufcg-method-selector {
        padding: 16px 4px;
    }
    .ufcg-method-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* --- Botão Novo Cadastro (Primeiro Acesso) --- */
.ufcg-novo-cadastro-btn {
    display: inline-block;
    background-color: #00c3b6;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.ufcg-novo-cadastro-btn:hover {
    background-color: #009b91;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none;
}

/* --- Custom Logo Override --- */
.glpi-logo {
    content: url('../img/logo.svg') !important;
    background: none !important; /* Remove qualquer background antigo */
    height: 80px !important;
    width: 250px !important;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

/* --- Popup de Aviso (Modal) --- */
.ufcg-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: ufcg-fade-in 0.25s ease;
}

@keyframes ufcg-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ufcg-popup-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ufcg-slide-up 0.3s ease;
}

@keyframes ufcg-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ufcg-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.ufcg-popup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.ufcg-popup-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.ufcg-popup-close:hover {
    color: #0f172a;
}

.ufcg-popup-icon {
    font-size: 1.3rem;
}

.ufcg-popup-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #334155;
}

.ufcg-popup-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    flex-wrap: wrap;
}

.ufcg-popup-btn {
    padding: 9px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.ufcg-popup-btn-secondary {
    background: #fff;
    color: #475569;
    border-color: #cbd5e1;
}
.ufcg-popup-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.ufcg-popup-btn-primary {
    background: #475569;
    color: #fff;
    border-color: #475569;
}
.ufcg-popup-btn-primary:hover {
    background: #334155;
    border-color: #334155;
}

@media (max-width: 480px) {
    .ufcg-popup-footer {
        flex-direction: column;
    }
    .ufcg-popup-btn {
        width: 100%;
        text-align: center;
    }
}
