/* Container Central */
.pgd-login-wrapper {
    display: flex;
    justify-content: center;
    /* ALTERADO: Alinha no topo em vez de centralizar */
    align-items: flex-start;
    /* ALTERADO: Define a distância exata do topo (ajuste este valor se quiser mais ou menos) */
    padding-top: 60px;
    min-height: 100vh;   /* Ocupa a altura toda */
    padding-bottom: 20px; /* Garante um espaço embaixo em telas pequenas */
    background-color: #ffffff; /* Cor de fundo opcional para a página toda */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* O Cartão */
.pgd-login-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    
    /* A MÁGICA ESTÁ AQUI: */
    opacity: 0; /* Começa invisível */
    animation: pgdFadeIn 0.6s ease-out forwards; /* Executa a animação e mantém o estado final */
}

/* Header Colorido */
.pgd-card-header {
    background-color: #2c3e50;
    /* ALTERADO: Reduzido de 40px para 25px para diminuir o espaço */
    padding: 25px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* A Logo */
.pgd-logo {
    /* ALTERADO: Aumentado para permitir uma logo maior */
    max-width: 220px;
    /* ALTERADO: Aumentado de 80px para 110px */
    max-height: 110px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Corpo do Formulário (MANTIDO IGUAL) */
.pgd-card-body {
    padding: 40px;
}

.pgd-login-welcome h2 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.pgd-login-welcome p {
    margin: 0 0 30px;
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
}

/* Inputs (MANTIDO IGUAL) */
.pgd-form-group {
    margin-bottom: 20px;
}

.pgd-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pgd-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pgd-input:focus {
    border-color: #2c3e50;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* Senha com Olho (MANTIDO IGUAL) */
.pgd-password-wrapper {
    position: relative;
    width: 100%;
}

.pgd-password-wrapper input {
    padding-right: 45px;
}

.pgd-toggle-pass {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.3s;
    opacity: 0.6;
    z-index: 10;
}

.pgd-toggle-pass:hover {
    color: #2c3e50;
    opacity: 1;
}

/* Botão (MANTIDO IGUAL) */
.pgd-btn-primary {
    width: 100%;
    padding: 15px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pgd-btn-primary:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.pgd-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Footer (MANTIDO IGUAL) */
.pgd-form-actions {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.pgd-remember {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgd-login-footer {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: 13px;
}

.pgd-login-footer a {
    color: #7f8c8d;
    text-decoration: none;
}
.pgd-login-footer a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.pgd-login-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #fca5a5;
}

/* --- ADICIONE ISTO NO FINAL DO ARQUIVO OU ATUALIZE A CLASSE --- */

/* 1. Definimos a animação */
@keyframes pgdFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Começa um pouquinho mais pra cima */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Posição final */
    }
}

/* ----------------------------------------------------------
   Proteção contra CSS do tema/Elementor
   (garante estética PGD somente na tela de login)
---------------------------------------------------------- */
.pgd-login-wrapper .pgd-btn-primary,
.pgd-login-wrapper button.pgd-btn-primary,
.pgd-login-wrapper input[type="submit"].pgd-btn-primary {
    all: unset !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    width: fit-content !important;
    min-width: 220px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 15px !important;
    background: #2c3e50 !important;
    background-color: #2c3e50 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-color: transparent !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.pgd-login-wrapper .pgd-btn-primary::before,
.pgd-login-wrapper .pgd-btn-primary::after {
    content: none !important;
    display: none !important;
}

.pgd-login-wrapper .pgd-btn-primary:hover {
    background: #34495e !important;
    background-color: #34495e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15) !important;
}

.pgd-login-wrapper .pgd-btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.pgd-login-wrapper .pgd-btn-primary:focus,
.pgd-login-wrapper .pgd-btn-primary:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.25), 0 4px 6px rgba(0,0,0,0.1) !important;
}