/* ================================================================
   HEIMA Project Login Gate — hpl-style.css
   ================================================================ */

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

/* ---------- Overlay ---------- */
.hpl-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    animation: hplFadeIn .25s ease;
}
/* Oculta o popup por padrão em páginas que não são single de projeto */
body:not(.single-projeto) #hpl-overlay {
    display: none;
}
@keyframes hplFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Modal ---------- */
.hpl-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 660px;
    padding: 48px 56px 44px;
    box-sizing: border-box;
    border: 2px solid #4a90d9;
    animation: hplSlideUp .28s ease;
}

@keyframes hplSlideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- Botão fechar ---------- */
.hpl-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: 1px solid #999;
    color: #555;
    font-size: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1;
}

.hpl-close:hover {
    background: #eee;
    color: #111;
}

/* ---------- Textos ---------- */
.hpl-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #111;
    text-align: center;
    margin: 0 0 12px;
}

.hpl-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #333;
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ---------- Mensagem de erro/sucesso ---------- */
.hpl-message {
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    border-radius: 2px;
    text-align: center;
}

.hpl-message.is-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #e74c3c;
}

.hpl-message.is-success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #27ae60;
}

/* ---------- Campos ---------- */
.hpl-field {
    margin-bottom: 12px;
}

.hpl-input {
    width: 100%;
    padding: 16px 14px;
    background: #f0f0f0;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: background .15s;
}

.hpl-input:focus {
    background: #e6e6e6;
}

.hpl-input::placeholder {
    color: #888;
}

/* ---------- Botões ---------- */
.hpl-btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: .08em;
    cursor: pointer;
    border: none;
    transition: background .18s, opacity .18s;
    margin-top: 16px;
    box-sizing: border-box;
}

.hpl-btn--primary {
    background: #2c2118;
    color: #fff;
}

.hpl-btn--primary:hover {
    background: #3d2f22;
}

.hpl-btn--primary:disabled {
    opacity: .6;
    cursor: wait;
}

.hpl-btn--secondary {
    background: transparent;
    color: #333;
    border: 1px solid #ccc;
}

.hpl-btn--secondary:hover {
    background: #f5f5f5;
}

/* ---------- Links ---------- */
.hpl-links {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #555;
    text-align: center;
    margin: 16px 0 0;
}

.hpl-links a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #bbb;
    transition: color .15s;
}

.hpl-links a:hover {
    color: #111;
}

/* ---------- Greeting na header ---------- */
.hpl-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: .06em;
    color: #fff; /* herda a cor da header do tema */
    background: none;
    border: none;
    cursor: default;
    padding: 0;
    line-height: 1;
}
.hpl-greeting__icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
    opacity: .75;
}
.hpl-greeting--login {
    cursor: pointer;
    opacity: .85;
    transition: opacity .15s;
}

.hpl-greeting--login:hover {
    opacity: 1;
}


/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .hpl-modal {
        padding: 36px 24px 32px;
    }
}
