/* Ficheiro: app/static/css/estilos_publicos_otimizado.css - Nova Paleta */
:root {
    /* Cores Primárias - Vermelho Vibrante */
    --primary-red: #e74c3c;
    --primary-red-dark: #c0392b;
    --primary-red-light: #ff6b5b;
    
    /* Cores Secundárias - Laranja e Dourado */
    --secondary-orange: #f39c12;
    --secondary-orange-dark: #e67e22;
    --secondary-gold: #f1c40f;
    --secondary-gold-dark: #f39c12;
    
    /* Tons Neutros Modernos */
    --neutral-dark: #2c3e50;
    --neutral-gray: #7f8c8d;
    --neutral-light: #ecf0f1;
    --primary-white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--secondary-orange));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-orange), var(--secondary-gold));
    
    /* Sombras */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 8px 32px rgba(231, 76, 60, 0.3);
    --shadow-secondary: 0 8px 32px rgba(243, 156, 18, 0.3);
    
    /* Bordas e Transições */
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Cores de apoio */
    --light-red: rgba(231, 76, 60, 0.1);
    --dark-red: var(--primary-red-dark);
}

body {
    background: linear-gradient(135deg, var(--primary-white) 0%, #f8f9fa 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Botões com Nova Paleta */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-danger {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    background: transparent;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-danger:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-secondary {
    border: 2px solid var(--neutral-gray);
    color: var(--neutral-gray);
    background: transparent;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background: var(--neutral-gray);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-info {
    border: 2px solid #3498db;
    color: #3498db;
    background: transparent;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-info:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.3);
}

.btn-outline-success {
    border: 2px solid #1abc9c;
    color: #1abc9c;
    background: transparent;
    font-weight: 600;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.btn-outline-success:hover {
    background: #1abc9c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 188, 156, 0.3);
}

/* Cards com Nova Paleta */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
}

/* Tabelas com Nova Paleta */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(231, 76, 60, 0.05);
}

.table tbody td {
    padding: 1rem;
    border-color: #f8f9fa;
}

/* Badges com Nova Paleta */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
}

.badge-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.badge-warning {
    background: var(--gradient-secondary);
    color: var(--neutral-dark);
}

.badge-danger {
    background: var(--gradient-primary);
    color: white;
}

/* Mensagens Flash Melhoradas */
.flash-message {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid;
    animation: slideInDown 0.5s ease-out;
}

.flash-message.alert-success {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1), rgba(22, 160, 133, 0.1));
    border-left-color: #1abc9c;
    color: #155724;
}

.flash-message.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
    border-left-color: var(--primary-red);
    color: #721c24;
}

.flash-message.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.1));
    border-left-color: var(--secondary-orange);
    color: #856404;
}

.flash-message.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    border-left-color: #3498db;
    color: #0c5460;
}

.flash-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.flash-message.alert-success .flash-icon {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: white;
}

.flash-message.alert-danger .flash-icon {
    background: var(--gradient-primary);
    color: white;
}

.flash-message.alert-warning .flash-icon {
    background: var(--gradient-secondary);
    color: white;
}

.flash-message.alert-info .flash-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.flash-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.flash-text {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.flash-message .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flash-message .btn-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Animações para Flash Messages */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.flash-message.fade {
    animation: slideOutUp 0.3s ease-in forwards;
}

/* Alerts responsivos */
.alert {
    border-radius: var(--border-radius);
    border: none;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: var(--light-red);
    color: var(--primary-red);
    border-left: 4px solid var(--primary-red);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}





/* Hero Header com Imagem - PÁGINAS INTERNAS */
.event-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(74, 144, 226, 0.8) 0%,
    rgba(53, 122, 189, 0.9) 100%);
    z-index: 1;
}

.event-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 700px;
}


/* Container Principal */
.event-content {
    padding: 2.5rem 0;
    margin-top: -1.5rem;
    position: relative;
    z-index: 3;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Seção de Descrição */
.event-description {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.event-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.section-title {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--light-red), transparent);
}

.event-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    white-space: pre-wrap;
}

/* Card de Detalhes */
.details-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.details-header {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.details-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.details-body {
    padding: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.875rem;
    border-radius: 8px;
    border-left: 4px solid var(--light-red);
    transition: var(--transition);
}

.detail-item:hover {
    border-left-color: var(--primary-red);
    transform: translateX(2px);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    color: var(--primary-red);
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
    margin-top: 2px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: #666;
    font-size: 0.95rem;
}

.price-item {
    background: var(--light-red);
    border-left-color: var(--primary-red);
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Botão de Inscrição */
.subscribe-section {
    padding: 1.25rem 1.5rem 1.75rem;
    background: var(--primary-white);
    border-top: 1px solid #eee;
}

.btn-subscribe {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(214, 58, 38, 0.3);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 58, 38, 0.4);
    color: white;
    text-decoration: none;
}

/* Botão Voltar */
.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.back-button:hover {
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    transform: translateX(-2px);
}

/* Estilos para o card clicável */
a.card-link, a.card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Estilos para o Botão Flutuante do WhatsApp */
.whatsapp-fab {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 26px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.site-footer {
    padding: 2rem 0;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}

.developer-credit a {
    color: #495057;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--primary-red);
    text-decoration: none;
}

/* RESPONSIVIDADE OTIMIZADA */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }

    .details-card {
        position: static;
    }

    .event-card {
        min-width: 240px;
        width: 240px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .events-carousel {
        padding: 1rem 0.5rem;
    }

    /* Removido altura fixa para permitir conteúdo completo do card */
    .event-card {
        min-width: 220px;
        width: 220px;
        /* height: 240px; - Removido para permitir altura automática */
    }

    /* Ajustado altura da imagem para ser proporcional */
    .event-image {
        height: 120px; /* Aumentado de 85px para 120px */
    }

    .event-title {
        font-size: 1rem;
    }

    .carousel-controls {
        width: 35px;
        height: 35px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .about-section {
        padding: 2rem 1.5rem;
    }

    .event-hero {
        height: 40vh;
        min-height: 280px;
        background-attachment: scroll;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-description {
        padding: 1.5rem;
    }

    .details-body {
        padding: 1.25rem;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Removido altura fixa para permitir conteúdo completo do card */
    .event-card {
        min-width: 200px;
        width: 200px;
        /* height: 220px; - Removido para permitir altura automática */
    }

    .event-image {
        height: 75px;
    }

    .event-body {
        padding: 0.875rem;
    }

    .event-title {
        font-size: 0.95rem;
    }

    .about-section {
        padding: 1.5rem 1rem;
    }

    .events-carousel {
        gap: 0.75rem;
    }

    .view-toggle {
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .toggle-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .event-hero {
        height: 35vh;
        min-height: 240px;
    }

    .event-card {
        min-width: 180px;
        width: 180px;
        height: 200px;
    }

    .event-image {
        height: 65px;
    }

    .event-body {
        padding: 0.75rem;
    }

    .event-title {
        font-size: 0.9rem;
        height: 2.3rem;
    }

    .hero-section {
        padding: 1.5rem 1rem;
    }

    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .back-button {
        position: static;
        margin: 0.5rem;
        width: fit-content;
    }
}

/* ANIMAÇÕES OTIMIZADAS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.event-card {
    animation: slideInRight 0.5s ease-out;
}

.event-card:nth-child(2) {
    animation-delay: 0.1s;
}

.event-card:nth-child(3) {
    animation-delay: 0.2s;
}

.event-card:nth-child(4) {
    animation-delay: 0.3s;
}

.event-card:nth-child(5) {
    animation-delay: 0.4s;
}

.event-description,
.details-card {
    animation: fadeInUp 0.6s ease-out;
}

.details-card {
    animation-delay: 0.2s;
}

.detail-item {
    animation: fadeInUp 0.4s ease-out;
}

.detail-item:nth-child(2) {
    animation-delay: 0.1s;
}

.detail-item:nth-child(3) {
    animation-delay: 0.2s;
}

.detail-item:nth-child(4) {
    animation-delay: 0.3s;
}

.detail-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* JAVASCRIPT HELPERS - Classes utilitárias */
.carousel-smooth-scroll {
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in {
    animation: slideInRight 0.5s ease-out;
}

/* MICRO-INTERAÇÕES */
.event-card-compact:active {
    transform: scale(0.98);
}

.btn-subscribe-compact:active {
    transform: translateY(0) scale(0.95);
}

.carousel-controls:active {
    transform: translateY(-50%) scale(0.9);
}

/* OTIMIZAÇÕES DE PERFORMANCE */
.event-image,
.event-card,
.btn-subscribe,
.btn-hero {
    will-change: transform;
}

/* ESTADOS DE LOADING */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.card-skeleton {
    height: 260px;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* ACESSIBILIDADE */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FOCUS STATES */
.event-card:focus-within,
.btn-subscribe:focus,
.btn-hero:focus,
.carousel-controls:focus {
    outline: 3px solid rgba(214, 58, 38, 0.5);
    outline-offset: 2px;
}

/* IMPRESSÃO */
@media print {
    .carousel-controls,
    .whatsapp-fab,
    .back-button {
        display: none !important;
    }

    .event-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-white: rgb(45, 45, 50);
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    body {
        background: linear-gradient(135deg, #49494d 0%, #43434f 100%);
        color: #e0e0e0;
    }

    .event-card,
    .about-section,
    .event-description,
    .details-card {
        /* background: #3a3a3f; */
        color: #e0e0e0;
    }

    .event-text,
    .about-text,
    .detail-value {
        color: #c0c0c0;
    }
}

/* Ficheiro: app/static/css/estilos_publicos.css */

/* ... (seus estilos existentes) ... */


/* =================================
   ESTILOS PARA A PÁGINA DE LOGIN
   ================================= */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px); /* Ajusta a altura para centralizar verticalmente */
    padding: 2rem 1rem;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas de tamanho igual */
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.login-form-column {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(214, 58, 38, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 58, 38, 0.4);
    color: white;
}

.login-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-footer-text a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
}

.login-image-column {
    background-image: url('../images/ikigai.png');
    background-size: cover;
    background-position: center;
}

/* Responsividade para a página de login */
@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr; /* Coluna única em telas menores */
    }

    .login-image-column {
        display: none; /* Esconde a coluna da imagem para economizar espaço */
    }

    .login-form-column {
        padding: 2rem;
    }
}

/* Ficheiro: app/static/css/estilos_publicos.css */

/* ===========================================
   NOVO ESTILO: Botão “Ver Detalhes” no Índice
   =========================================== */
.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-details i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.btn-details:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ===================================
   AJUSTES NA TELA DE DETALHE DE EVENTO
   =================================== */
/* Garante que o conteúdo principal e a coluna de informações fiquem mais juntinhos em telas médias */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

/* Mais espaçamento interno no cartão de detalhes */
.details-body {
    padding: 2rem 1.5rem;
}

/* Único grid para itens de detalhe */
.details-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* Melhora o título das seções */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Estilos para eventos passados */
.event-card.event-past {
    filter: grayscale(80%); /* Deixa o card com menos cor */
    opacity: 0.7;
}

.event-past-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Uma camada branca semi-transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Garante que fique por cima da imagem mas abaixo de outros elementos se necessário */
}

.event-past-overlay span {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transform: rotate(-15deg); /* Deixa o texto inclinado para um estilo mais dinâmico */
}

.btn-subscribe.disabled {
    background: #6c757d; /* Cor cinza para o botão desativado */
    cursor: not-allowed;
    pointer-events: none; /* Impede o clique */
}