@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

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

/* ── CORPO ────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    background: #f4f8fb;
    color: #222;
}

/* ANIMAÇÃO BOLHAS */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Joga as bolhas absolutamente para o último plano */
    pointer-events: none; 
}
  
.bubbles span {
    position: absolute;
    bottom: -60px;
    background: rgba(0, 255, 85, 0.3);
    border-radius: 50%;
    animation: subir linear infinite;
}

/* Garante que as seções tenham posição relativa para gerenciar as camadas */
.contact-section, 
.map-hero-container {
    position: relative;
    overflow: hidden; /* Esconde as bolhas quando saem da tela */
}

/* Ajusta a camada das bolhas para ficarem acima do gradiente azul, mas abaixo dos textos/cards */
.contact-section .bubbles,
.map-hero-container .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Fica acima do fundo azul */
    pointer-events: none;
}

/* Joga o conteúdo principal (cards, títulos e mapas) para uma camada acima das bolhas */
.contact-section h1, 
.contact-section .subtitle, 
.contact-section .contact-card,
.map-hero-container h1, 
.map-hero-container p, 
.map-hero-container .map-box {
    position: relative;
    z-index: 2; /* Fica visível na frente das bolhas */
}
  
@keyframes subir {
    0% {
      transform: translateY(0) scale(1);
      opacity: 0;
    }
    50% {
      opacity: 0.8;
    }
    100% {
      transform: translateY(-110vh) scale(1.2);
      opacity: 0;
    }
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6%;
    background: rgba(17, 30, 74, 0.97);   /* navy escuro semi-opaco */
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: background 0.3s ease;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #F5C518;          /* dourado do logotipo */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo img {
    height: 44px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: rotate(-4deg) scale(1.05);
}

/* LINKS DE NAVEGAÇÃO */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

/* Linha animada embaixo do link */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #F5C518;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(245, 197, 24, 0.1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Link ativo */
.nav-links a.active {
    color: #F5C518;
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* ── BOTÕES DA NAVBAR ─────────────────────── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions > a {
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-block;
}

/* Botão "Entrar" — contorno */
.btn-entrar {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-entrar:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

/* Botão "Registrar-se" — sólido dourado */
.btn-registrar {
    background: #F5C518;
    color: #111E4A;
    border: 2px solid #F5C518;
}

.btn-registrar:hover {
    background: #d4a017;
    border-color: #d4a017;
    color: #111E4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 197, 24, 0.4);
}

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

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    padding: 170px 20px 120px;
    text-align: center;
    background: linear-gradient(135deg, #1B2D6B 0%, #2196C4 100%);
    color: #fff;
}

.hero-title-box {
    display: inline-block;
    padding: 20px 60px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1px;
}

.subtitle {
    margin: 20px 0;
    font-size: 18px;
    opacity: 0.88;
}

.hero-btn {
    margin-top: 15px;
}

.photo-wrapper {
    margin-top: -60px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2; /* Mantém a imagem destacada se necessário, mas com as bolhas em z-index: -1 elas passarão obrigatoriamente por trás de tudo */
}

.hero-photo {
    width: 85%;
    max-width: 1100px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

/* =============================================
   EQUIPE DE DESENVOLVIMENTO
   ============================================= */
.team-section {
    padding: 80px 8%;
    text-align: center;
}

.team-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1B2D6B;
    margin-bottom: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
    border: 2px solid transparent;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 45, 107, 0.14);
    border-color: #2196C4;
}

.team-card h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 17px;
    color: #1B2D6B;
    font-weight: 700;
}

.member-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #2196C4;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover .avatar img {
    border-color: #F5C518;
    transform: scale(1.08);
}

.member-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    color: #2196C4;
    font-size: 15px;
    transition: color 0.3s ease;
}

.team-card:hover .username {
    color: #1B2D6B;
}

.role {
    font-size: 13px;
    color: #666;
}

/* =============================================
   RODAPÉ
   ============================================= */
footer {
    background: #111E4A;
    color: #fff;
    padding: 50px;
    text-align: center;
    border-top: 4px solid #F5C518;
}

#logoRodape {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 16px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

#logoRodape:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

#logoRodape img {
    height: 40px;
}

#logoRodape h3 {
    font-size: 22px;
    font-weight: 700;
    color: #F5C518;
}

footer .Texto {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   CONTAINER GENÉRICO
   ============================================= */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* =============================================
   GALERIA ETEC (sobrenos.php)
   ============================================= */
.etec-gallery {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.etec-img {
    width: 100%;
    max-width: 450px;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.etec-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(27, 45, 107, 0.18);
}

/* =============================================
   SOBRE A RG EATS
   ============================================= */
.about-text-section {
    margin-bottom: 50px;
}

.about-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-left: 5px solid #1B2D6B;
    transition: box-shadow 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 18px 40px rgba(27, 45, 107, 0.12);
}

.about-card h2 {
    font-size: 32px;
    color: #1B2D6B;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

/* =============================================
   BANNER DE ALIMENTOS
   ============================================= */
.food-banner {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.food-banner img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.food-banner img:hover {
    transform: rotate(-1deg) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* =============================================
   MISSÃO, VISÃO E VALORES
   ============================================= */
.mvv-section {
    text-align: center;
}

.mvv-section > h2 {
    font-size: 32px;
    color: #1B2D6B;
    margin-bottom: 40px;
    font-weight: 700;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mvv-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid transparent;
    border-top: 4px solid #2196C4;
}

.mvv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 45, 107, 0.13);
    border-color: #1B2D6B;
    border-top-color: #F5C518;
}

.mvv-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.mvv-card:hover .mvv-icon {
    transform: scale(1.15) rotate(-5deg);
}

.mvv-card h3 {
    font-size: 22px;
    color: #1B2D6B;
    margin-bottom: 15px;
    font-weight: 700;
}

.mvv-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.mvv-list {
    list-style: none;
    padding: 0;
    width: 100%;
}

.mvv-list li {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
    padding-left: 14px;
    position: relative;
}

.mvv-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2196C4;
    font-weight: 700;
}

.mvv-list li strong {
    color: #1B2D6B;
}

/* =============================================
   PARCEIROS
   ============================================= */
.intro-text {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.partners-section {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
}

.partners-section h2 {
    font-size: 28px;
    color: #1B2D6B;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: left;
}

.partners-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.partners-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    background: #f4f8fb;
    padding: 20px 25px;
    border-radius: 14px;
    border-left: 5px solid #2196C4;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.partners-list li:hover {
    transform: translateX(6px);
    border-left-color: #F5C518;
    box-shadow: 4px 0 16px rgba(27, 45, 107, 0.1);
}

.partners-list li strong {
    color: #1B2D6B;
    display: block;
    margin-bottom: 4px;
}

/* =============================================
   MAPA (parceiros.php e mapa.php)
   ============================================= */
.map-section {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.map-section h2 {
    font-size: 28px;
    color: #1B2D6B;
    margin-bottom: 25px;
    font-weight: 700;
}

.map-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.map-wrapper:hover {
    box-shadow: 0 16px 36px rgba(27, 45, 107, 0.15);
}

.map-wrapper img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.map-wrapper:hover img {
    transform: scale(1.02);
}

/* Hero do mapa */
.map-hero-container {
    padding: 160px 20px 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1B2D6B 0%, #2196C4 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-hero-container h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
}

.map-hero-container p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.map-box {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.map-box:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}

.map-box img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* =============================================
   CONTATO
   ============================================= */
.contact-section {
    padding: 160px 20px 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1B2D6B 0%, #2196C4 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-section h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-section .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.contact-card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #222;
    transition: box-shadow 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1B2D6B;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #333;
    background: #f8fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2196C4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 196, 0.12);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #b0c4de;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #1B2D6B;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: #2A3F8F;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(27, 45, 107, 0.35);
}

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

/* =============================================
   RESPONSIVIDADE
   ============================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar {
        padding: 14px 5%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-photo {
        width: 95%;
    }

    .hero-title-box {
        padding: 16px 28px;
    }

    .nav-actions > a {
        padding: 8px 14px;
        font-size: 12px;
    }

    .map-hero-container h1,
    .contact-section h1 {
        font-size: 36px;
    }
}

/* =============================================
   TELA DE LOGIN (Melhorias e Modernização)
   ============================================= */

   .login-page {
    background: linear-gradient(135deg, #111E4A 0%, #1B2D6B 50%, #2196C4 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Elemento decorativo de fundo para dar profundidade */
.login-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
}

/* Link de voltar estilizado */
.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.back-link:hover {
    color: #F5C518;
    transform: translateX(-4px);
}

/* Card centralizado do formulário */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 45px 40px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(17, 30, 74, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #F5C518;
    animation: fadeInScale 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cabeçalho interno do card */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 28px;
    color: #111E4A;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

/* Grupos de Inputs dentro do login */
.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #111E4A;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-card .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.login-card .form-group input:focus {
    border-color: #2196C4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 196, 0.15);
}

.login-card .form-group input::placeholder {
    color: #94a3b8;
}

/* Botão de Entrar customizado para o Login */
.login-card .btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #111E4A;
    color: #F5C518;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(17, 30, 74, 0.2);
    letter-spacing: 0.5px;
}

.login-card .btn-submit:hover {
    background: #1B2D6B;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(17, 30, 74, 0.3);
}

.login-card .btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Caixa de mensagem de erro refinada */
.login-error-message {
    margin-top: 20px;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

.login-error-message p {
    color: #e53e3e;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* Animações fluidas */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* =============================================
   CARROSSEL DE IMAGENS (home)
   ============================================= */
.carrossel {
    position: relative;
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;             /* esconde as imagens que estão "fora" da tela */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
 
/* O "trilho" que contém as 3 imagens lado a lado.
   3 imagens = 300% de largura (cada imagem ocupa 100% do carrossel) */
.carrossel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 2000ms ease-in-out;  /* é essa transição que faz o slide suave */
}
 
.carrossel-img {
    width: 33.3333%;   /* 1/3 do trilho = 100% do quadro visível. ANTES estava 100%, o que fazia
                          cada imagem ocupar o trilho INTEIRO (3x maior que devia) */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;    /* impede a imagem de encolher e quebrar o alinhamento */
}

/* =============================================
   AVATAR / BOLINHA DE PERFIL (NAVBAR)
   ============================================= */
   .user-menu-container {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #F5C518;
    color: #111E4A;
    font-weight: 700;
    font-size: 18px;
    border: 2px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(245, 197, 24, 0.6);
}

/* Menu Dropdown ao passar o mouse / clicar */
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #ffffff;
    min-width: 170px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.user-menu-container:hover .user-dropdown {
    display: block;
}

.dropdown-header {
    padding: 12px 16px;
    background: #f4f8fb;
    border-bottom: 1px solid #e1e8ed;
    color: #111E4A;
    font-size: 13px;
    word-break: break-word;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.user-dropdown a:hover {
    background: #111E4A;
    color: #F5C518;
}

.user-dropdown a.logout-link:hover {
    background: #e53e3e;
    color: #ffffff;
}

/* Detalhes do Perfil */
.profile-details p {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2e8f0;
}

/* Responsividade Mobile */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .login-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .btn-entrar {
        display: none;   /* esconde "Entrar" em telas muito pequenas, fica só Registrar */
    }
}