:root {
    --blue-dark:   #1e3a8a;
    --blue-mid:    #1351b4;
    --blue-light:  #3b82f6;
    --bg-gradient: linear-gradient(135deg, #eef2ff 0%, #dbeafe 60%, #e0f2fe 100%);
    --shadow-card: 0 8px 40px rgba(30, 58, 138, 0.13), 0 2px 8px rgba(30,58,138,0.06);
    --radius-card: 20px;
    --text-muted:  #64748b;
    --border:      #e2e8f0;
}

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

body { font-family: 'Segoe UI', 'Rawline', sans-serif; }

/* =====================
   LOGIN
   ===================== */
.login-body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 28px 16px;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 44px 40px 36px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-card { padding: 32px 24px 28px; border-radius: 16px; }
}

.login-header { margin-bottom: 28px; }

.logo-prefeitura {
    max-width: 90px;
    height: auto;
    margin-bottom: 16px;
}

.login-header h2 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px;
}

.divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
}

.divider span {
    color: #cbd5e1;
    font-size: 0.78rem;
    white-space: nowrap;
}

.btn-govbr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--blue-mid);
    color: #fff;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.2px;
}

.btn-govbr:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(19, 81, 180, 0.38);
    color: #fff;
}

.logo-govbr-btn {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}

.info-text {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 20px;
    line-height: 1.5;
}

.footer-text {
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 20px;
}

/* =====================
   ALERTAS
   ===================== */
.alert {
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    text-align: left;
}

.alert-error {
    background: #fde8e8;
    color: #c41e1e;
    border-left: 4px solid #c41e1e;
}

.alert-info {
    background: #e8f4fd;
    color: var(--blue-mid);
    border-left: 4px solid var(--blue-mid);
}

/* =====================
   HEADER — PERFIL
   ===================== */
.profile-body {
    background: #f1f5f9;
    min-height: 100vh;
}

.app-header {
    background: #fff;
    border-bottom: 2px solid var(--blue-mid);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

/* =====================
   PERFIL — CARD
   ===================== */
.profile-container {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 20px;
}

.profile-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    padding: 44px 40px;
    text-align: center;
}

.avatar-area { margin-bottom: 16px; }

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blue-mid);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-name {
    font-size: 1.4rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.reliability-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.reliability-badge.gold   { background: #fff3cd; color: #856404; }
.reliability-badge.silver { background: #e8e8e8; color: #444; }
.reliability-badge.bronze { background: #f5e6d3; color: #7a4f2d; }

.govbr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    border: 1px solid #c7d7f7;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    color: var(--blue-dark);
    margin-bottom: 28px;
}

.info-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.info-table th {
    color: var(--text-muted);
    font-weight: 600;
    width: 38%;
}

.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

.verified-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* =====================
   BOTÃO SAIR
   ===================== */
.btn-logout {
    background: transparent;
    color: #c41e1e;
    border: 1.5px solid #c41e1e;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-logout:hover {
    background: #c41e1e;
    color: #fff;
}
