/* =====================================================
   ESTILOS GERAIS E VARIÁVEIS
===================================================== */
:root {
    --prim-dark: #1c521c;
    --prim-light: #416a44;
    --icon-bg-color: #59af76;
    --accent: #fcc20c;
    --txt: #fff;
    --font: 'Roboto', sans-serif;
    --trans: .2s;
    --max-w: 1200px;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font);
    background-color: #f0f0f0;
    color: #333;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: 95%;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* =====================================================
   ESTILOS DO CABEÇALHO E RODAPÉ (DO SEU style.css)
===================================================== */
header { background: var(--prim-dark); color: var(--txt); padding: 16px 0; }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
.header-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.logo { display: flex; align-items: center; gap: 15px; }
nav ul { display: flex; gap: 16px; list-style: none; flex-wrap: wrap; }
nav a { font-size: .9rem; font-weight: 500; padding: 6px 8px; border-radius: 4px; transition: background var(--trans); white-space: nowrap; }
nav a:hover { background: rgba(255, 255, 255, 0.1); }
.login-container { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.login-container > span { margin-bottom: 8px; font-size: 0.9rem; }
.signup, .login { padding: 8px 18px; border: none; border-radius: 3px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background var(--trans); height: 35px; }
.signup { background: var(--accent); color: #333; }
.signup:hover { background: #e0a000; }
.login { background: var(--prim-light); color: var(--txt); }
.login:hover { opacity: 0.9; }
.field-wrapper { position: relative; display: flex; flex-direction: column; gap: 4px; }
.field-wrapper label { font-size: .8rem; margin-left: 2px; }
.input-group { display: flex; align-items: center; height: 35px; }
.input-group-addon { background-color: var(--icon-bg-color); height: 100%; padding: 0 12px; display: flex; align-items: center; justify-content: center; border-radius: 3px 0 0 3px; border-right: 4px solid var(--prim-dark); }
.input-group-addon i { color: #fff; font-size: 1rem; }
.input-group input { padding: 8px 10px; border: 1px solid transparent; border-left: none; border-radius: 0 3px 3px 0; background: #fff; color: #333; font-size: .9rem; width: 175px; height: 100%; transition: all var(--trans); }
.input-group input:focus { outline: none; box-shadow: 0 0 0 2px rgba(252, 194, 12, 0.5); }
.forgot { position: absolute; bottom: -20px; right: 0; font-size: .75rem; white-space: nowrap; transition: opacity var(--trans); }
.forgot:hover { opacity: .8; }
.social-icons { display: flex; gap: 20px; }
.social-icons a { font-size: 1.25rem; transition: opacity var(--trans); }
.social-icons a:hover { opacity: .7; }
footer { background-color: var(--prim-dark); color: var(--txt); padding-top: 40px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; padding: 40px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 20px 0; font-size: 0.8rem; }
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background-color: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform .2s ease-in-out; }
.whatsapp-float:hover { transform: scale(1.1); 
}
/* =====================================================
   ESTILOS DE PÁGINAS E FORMULÁRIOS
===================================================== */
.page-content { padding: 40px 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h1 { color: var(--prim-dark); }
.btn-voltar { background-color: #f0f0f0; color: #333; border: 1px solid #ccc; padding: 8px 15px; text-decoration: none; border-radius: 4px; font-weight: bold; }

/* =====================================================
   ESTILOS DOS ANÚNCIOS (PÁGINA INICIAL E COMITENTE)
===================================================== */
/* --- Layout da Lista de Leilões (Página Inicial e Comitente) --- */
.auction-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    text-decoration: none;
    color: #333;
}
.home-auction-list .auction-list-item {
    border-bottom: 1px solid #e0e0e0;
}
.home-auction-list .auction-list-item:last-child {
    border-bottom: none;
}
.auction-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
}
.auction-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.auction-item-details {
    flex-grow: 1;
}
.auction-item-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 500;
}
.auction-item-details p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #555;
}
.auction-item-status {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.status-badge {
    background-color: var(--prim-dark);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
.auction-item-status .category {
    font-size: 0.8rem;
    font-weight: bold;
    color: #777;
    margin: 0;
    text-transform: uppercase;
}
.comitente-logo {
    max-height: 40px;
    max-width: 100px;
}

/* =====================================================
   ESTILOS PARA A PÁGINA DE LOTES DO COMITENTE
===================================================== */
.comitente-page .auction-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os cards dos lotes */
}

.comitente-page .auction-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    border: 2px solid #28a745; /* CONTORNO VERDE FINO */
    padding: 15px;
    border-radius: 10px; /* QUINAS ARREDONDADAS */
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.comitente-page .auction-list-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.comitente-page .auction-item-image {
    flex-shrink: 0;
    width: 150px;
    height: 110px;
}
.comitente-page .auction-item-details {
    flex-grow: 1;
}
.comitente-page .auction-item-status {
    flex-shrink: 0;
    width: 200px;
    text-align: right;
}
.comitente-page .details-button {
    background-color: var(--prim-dark);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    margin-top: 10px;
    display: inline-block;
    font-weight: bold;
}
/* =====================================================
   DESIGN RESPONSIVO PARA TODOS OS ECRÃS
===================================================== */
@media (max-width: 992px) {
    /* Ajustes para tablets */
    .header-top, .header-bottom, .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    .login-container, .footer-contact-grid {
        width: 100%;
        justify-content: center;
    }
    .header-bottom nav ul {
        justify-content: center;
    }
    .detalhe-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Ajustes para telemóveis */
    body { font-size: 16px; }
    .login-container { align-items: stretch; }
    .input-group input { width: 100%; }
    .field-wrapper { width: 100%; }
    .field-wrapper .input-group { width: 100%; }
    .slider { height: 250px; }
    .form-container-flex, .contact-container-flex { flex-direction: column; }
    .search-section { margin-top: -40px; }
    .search-form { flex-direction: column; align-items: stretch; }
    .lots-grid-container { grid-template-columns: 1fr; }
    .auction-list-item { flex-direction: column; text-align: center; }
    .auction-item-details, .auction-item-status { width: 100%; }
    h1, .page-header h1 { font-size: 1.8rem; }
    h2, .section-header h2 { font-size: 1.4rem; }

}

/* =====================================================
   ESTILOS DO RODAPÉ (FOOTER) - CORRIGIDO E REINSERIDO
===================================================== */
footer {
    background-color: var(--prim-dark);
    color: var(--txt);
    padding-top: 40px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo-area {
    flex: 2;
    min-width: 300px;
}
.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}
.footer-contact-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-newsletter-area {
    flex: 1;
    min-width: 300px;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--prim-light);
    background-color: var(--prim-light);
    color: var(--txt);
    border-radius: 4px;
}
.newsletter-form button {
    padding: 10px;
    border: none;
    background-color: var(--accent);
    color: #333;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    font-size: 0.8rem;
    opacity: 0.8;
}
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
}


/* =====================================================
   ESTILOS DA PÁGINA CADASTRO/LOGIN (do cadastro-login.css)
===================================================== */
.main-background { background-color: #f0f0f0; padding: 30px 0; }
.attention-bar { background-color: #fff3cd; color: #664d03; border: 1px solid #ffecb5; border-radius: 8px; padding: 15px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.signup-login-container { display: flex; gap: 0; background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 0; overflow: hidden; }
.signup-options, .login-box { flex: 1; padding: 30px 40px; }
.signup-options { border-right: 1px solid #eee; }
.signup-login-container h2 { font-size: 1.8rem; color: var(--prim-dark); margin-top: 0; margin-bottom: 10px; }
.signup-login-container p { color: #555; margin-bottom: 30px; }
.btn-signup-type { display: block; width: 100%; background-color: var(--prim-dark); color: #FFFFFF !important; text-align: center; padding: 15px; border-radius: 4px; font-size: 1.2rem; font-weight: normal; margin-bottom: 15px; text-decoration: none !important; transition: background-color 0.2s; }
.btn-signup-type:hover { background-color: var(--prim-light); }
.login-box .form-group { margin-bottom: 20px; }
.login-box .form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.login-box .form-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.login-actions { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.login-box .btn-submit { background-color: var(--prim-dark); color: #fff; border: none; padding: 12px 30px; font-size: 1rem; cursor: pointer; border-radius: 4px; }

.login-box .forgot-link { font-size: 0.9rem; color: var(--prim-dark); text-decoration: underline; }


.login-box .forgot-link { font-size: 0.9rem; color: var(--prim-dark); text-decoration: underline; }

.login-box .forgot-link { font-size: 0.9rem; color: var(--prim-dark); text-decoration: underline; }