/* public/css/style.css */

/* 1. Importação das Fontes */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

/* 2. Definição das Variáveis de Cores (Paleta) */
:root {
    --primary-color: #D9A8A4;
    --title-color: #333333;
    --hero-title-color: #FFFFFF;
    --background-color: #F8F7F4;
    --text-color: #555555;
    --white-color: #FFFFFF;
    --border-color: #EAEAEA;
}


/* 3. Reset e Base Responsiva */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body {
    background-color: var(--background-color);
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 4. Classes de Tipografia Personalizadas */
.font-title {
    font-family: 'Playfair Display', serif;
    color: var(--title-color);
}
.font-body { font-family: 'Inter', sans-serif; }
.font-signature {
    font-family: 'Great Vibes', cursive;
    color: var(--primary-color);
    font-size: 2.25rem;
    font-weight: normal;
}

/* 5. Estilos de Componentes Personalizados */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -5px rgba(0,0,0,0.15);
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -5px rgba(0,0,0,0.25);
}
.card-shadow {
    box-shadow: 0 10px 25px -10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.card-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.15);
}
.input-styled {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px;
    transition: all 0.2s ease;
}
.input-styled:focus {
    --tw-ring-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    outline: none;
}

/* 6. Estilo do Overlay de Fundo */
.background-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.3);
}

body.login-page {
    background-image: url('../images/background2.jpg');
    background-size: cover; /* Cobre toda a tela */
    background-position: center center; /* Centraliza a imagem */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efeito parallax (imagem fixa ao rolar) */
    position: relative; /* Necessário para a sobreposição se quiser escurecer */
}

/* Opcional: Adiciona uma camada escura suave sobre a imagem para destacar o formulário */
body.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 10% de escurecimento */
    z-index: -1; /* Fica atrás do conteúdo, mas na frente do fundo */
}

/* 8. ESTILOS DE TEMA */

/* TEMA: Padrão (Clássico) */
body.theme-padrao #page-wrapper {
    display: block;
}


/* TEMA: Moderno (Layout Dividido) - REGRAS REMOVIDAS PARA CORRIGIR O LAYOUT */

/* Em ecrãs pequenos, o tema moderno comporta-se como o clássico */
body.theme-moderno .font-title {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* --- LOADERS --- */

/* Loader Padrão (Círculo Giratório - Clássico) */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid var(--primary-color); /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loader Animado (Corações Pulsantes - Moderno) */
.heart-loader {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.heart-loader div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: var(--primary-color);
    animation: heart-loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
    border-radius: 4px;
}
.heart-loader div:nth-child(1) { left: 8px; animation-delay: -0.24s; }
.heart-loader div:nth-child(2) { left: 32px; animation-delay: -0.12s; }
.heart-loader div:nth-child(3) { left: 56px; animation-delay: 0; }
@keyframes heart-loader {
    0% { top: 8px; height: 64px; }
    50%, 100% { top: 24px; height: 32px; }
}