/* ==========================================
   PUBLIC.CSS - Shell Externo e Grids Base
   ========================================== */

/* --- SHELL BASE --- */
.public-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER --- */
.public-header {
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 80px;
    background-color: var(--bg-surface, #ffffff);
    border-bottom: 1px solid var(--border-light, #e5e7eb);
    flex-shrink: 0;
}

.public-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.public-header__logo {
    width: auto;
    height: 38px;
}

.public-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.public-header__username {
    color: var(--text-primary, #2c3e50);
    font-size: 0.95rem;
    font-weight: 600;
}

.public-header__logout-form {
    display: flex;
    align-items: center;
    margin: 0;
}

/* --- MAIN CONTENT (Container Principal) --- */
.public-main {
    display: flex;
    flex: 1 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Modificador: Fundo com Imagem Hero (Telas de Login do cliente) */
.public-main--client-login {
    justify-content: center;
    align-items: center;
    background: url('../img/background-leaf.png'), linear-gradient(180deg, #70A179 0%, #4E7162 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Modificador: Fundo com Imagem Hero (Telas de Login interno) */
.public-main--internal-login {
    justify-content: center;
    align-items: center;
    background: url('../img/background-leaf.png'), linear-gradient(180deg, #4E7162 0%, #364153 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Modificador: Fundo Claro (Dashboard do Cliente) */
.public-main--light {
    justify-content: center;
    align-items: flex-start; /* Alinha o conteúdo ao topo, e não ao centro */
    background-color: var(--bg-main, #f4f5f7);
}

/* --- CONTAINERS E GRIDS --- */
.public-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modificador de Grid: Tela Dividida (Card na Esquerda, Texto na Direita) */
.public-grid--split {
    display: grid;
    align-items: center;
    gap: 100px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: 420px 1fr;
}

/* Responsividade do Grid Split */
@media (width <= 900px) {
    .public-grid--split {
        gap: 40px;
        grid-template-columns: 1fr;
    }
}

/* --- LINKS -------------------------------------------------- */

/* Link para rodapés ou ações secundárias */
.link-subtle, 
.link-subtle:visited {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.link-subtle:hover {
    color: var(--color-primary);
}