/* IgrejaNet Gestão - Sistema de Contas
   Inspirado: Google Account + Facebook Login
   Cor principal: #004b8c
*/

:root {
    --azul:       #004b8c;
    --azul-hover: #003d75;
    --azul-light: #e8f0fb;
    --cinza-bg:   #f5f5f5;
    --cinza-borda:#dadce0;
    --cinza-texto:#5f6368;
    --vermelho:   #d93025;
    --verde:      #1e8e3e;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.12);
    --radius:     12px;
    --radius-sm:  8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--cinza-bg);
    color: #202124;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Layout centrado (login/cadastro) ── */
.conta-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    min-height: 100vh;
}

.conta-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 448px;
    padding: 40px 48px 36px;
}

@media (max-width: 520px) {
    .conta-card {
        padding: 32px 24px 28px;
        border-radius: var(--radius-sm);
    }
}

/* ── Logo + cabeçalho ── */
.conta-logo {
    text-align: center;
    margin-bottom: 24px;
}

.conta-logo img {
    height: 44px;
    width: auto;
}

.conta-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.conta-logo-text span.verde { color: #1e8e3e; }

.conta-titulo {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    text-align: center;
    margin-bottom: 8px;
}

.conta-subtitulo {
    font-size: 16px;
    color: var(--cinza-texto);
    text-align: center;
    margin-bottom: 28px;
}

/* ── Campos ── */
.campo-grupo {
    margin-bottom: 20px;
}

.campo-grupo label {
    display: block;
    font-size: 14px;
    color: #202124;
    margin-bottom: 6px;
    font-weight: 500;
}

.campo-grupo input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--cinza-borda);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: #202124;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
}

.campo-grupo input:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(0, 75, 140, .15);
}

.campo-grupo input.erro {
    border-color: var(--vermelho);
}

.campo-erro-msg {
    color: var(--vermelho);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.campo-erro-msg.visivel { display: block; }

/* ── Senha com olho ── */
.campo-senha-wrapper {
    position: relative;
}

.campo-senha-wrapper input {
    padding-right: 48px;
}

.btn-ver-senha {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--cinza-texto);
    padding: 4px;
    display: flex;
    align-items: center;
}

.btn-ver-senha:hover { color: var(--azul); }

/* ── Botões ── */
.btn-primario {
    width: 100%;
    padding: 14px;
    background: var(--azul);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: 8px;
}

.btn-primario:hover  { background: var(--azul-hover); }
.btn-primario:active { transform: scale(.99); }

.btn-primario:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.btn-secundario {
    display: inline-block;
    padding: 10px 16px;
    color: var(--azul);
    background: none;
    border: 1.5px solid var(--azul);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.btn-secundario:hover { background: var(--azul-light); }

/* ── Divisor ── */
.divisor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--cinza-texto);
    font-size: 13px;
}

.divisor::before,
.divisor::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cinza-borda);
}

/* ── Links de navegação ── */
.conta-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--cinza-borda);
}

.conta-nav a {
    font-size: 14px;
    color: var(--azul);
    text-decoration: none;
    font-weight: 500;
}

.conta-nav a:hover { text-decoration: underline; }

/* ── Alertas flash ── */
.alerta {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerta-erro    { background: #fce8e6; color: #c62828; border: 1px solid #f5c6c2; }
.alerta-sucesso { background: #e6f4ea; color: #1e6a2e; border: 1px solid #b7dfbe; }
.alerta-info    { background: var(--azul-light); color: var(--azul); border: 1px solid #c5d9f2; }
.alerta-aviso   { background: #fef9e7; color: #7d5a00; border: 1px solid #f7e08a; }

/* ── Checkbox lembrar ── */
.campo-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.campo-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--azul);
}

.campo-checkbox label {
    font-size: 14px;
    color: #202124;
    cursor: pointer;
}

/* ── Dashboard / minha conta ── */
.dashboard-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

.dashboard-header {
    background: var(--azul);
    padding: 24px 32px;
    border-radius: var(--radius);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.dashboard-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.2);
}

.dashboard-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    border: 3px solid rgba(255,255,255,.4);
    flex-shrink: 0;
}

.dashboard-info h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-info p {
    font-size: 14px;
    opacity: .85;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--azul-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-info strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #202124;
}

.stat-info span {
    font-size: 13px;
    color: var(--cinza-texto);
}

.secao-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.secao-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--cinza-borda);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.secao-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
}

.secao-card-body { padding: 24px; }

/* ── Navbar superior ── */
.conta-topbar {
    background: #fff;
    border-bottom: 1px solid var(--cinza-borda);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--azul);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-logo span.cruz { color: #1e8e3e; font-size: 22px; }

.topbar-usuario {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cinza-borda);
}

.topbar-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--azul);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.topbar-nome {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

@media (max-width: 480px) {
    .topbar-nome { display: none; }
}

.topbar-sair {
    font-size: 13px;
    color: var(--cinza-texto);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background .15s;
}

.topbar-sair:hover { background: var(--cinza-bg); }

/* ── Rodapé ── */
.conta-footer {
    text-align: center;
    padding: 20px 16px;
    font-size: 12px;
    color: var(--cinza-texto);
}

.conta-footer a { color: var(--cinza-texto); text-decoration: none; }
.conta-footer a:hover { text-decoration: underline; }

/* ── Utilitários ── */
.texto-centro { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.link-azul { color: var(--azul); text-decoration: none; font-weight: 500; }
.link-azul:hover { text-decoration: underline; }
.texto-pequeno { font-size: 13px; color: var(--cinza-texto); }
