/* =============================================================================
   Sigef - Tela de Login
   Layout baseado em: sigef_old/Imagens/TelaLogin.jpeg
   ============================================================================= */

/* Reset e fundo full-screen */
html, body.login-body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body.login-body {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #2b3141;
}

/* Overlay semi-transparente sobre o fundo */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card branco central */
.login-card {
    background: #ffffff;
    width: 340px;
    padding: 40px 36px 32px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Título SIGEF */
.login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.login-title span {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #111111;
}

.login-logo {
    width: 56px;
    height: 56px;
}

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

.login-input,
.login-input .ui-inputfield {
    width: 100% !important;
    height: 40px;
    border: 1px solid #c8c8c8 !important;
    border-radius: 0 !important;
    font-size: 0.95rem !important;
    padding: 8px 12px !important;
    background: #f9f9f9 !important;
    color: #333 !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
}

.login-input:focus,
.login-input .ui-inputfield:focus {
    border-color: #888 !important;
    background: #ffffff !important;
}

/* Botão ENTRAR */
.login-btn,
.login-btn.ui-button {
    width: 100% !important;
    height: 42px !important;
    background: #111111 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    margin-top: 4px;
    transition: background 0.2s;
}

.login-btn:hover,
.login-btn.ui-button:hover {
    background: #2c2c2c !important;
}

.login-btn .ui-button-text {
    padding: 0 !important;
    line-height: 42px !important;
}

/* Mensagens de erro */
.login-messages {
    margin-bottom: 10px;
}

.login-messages .ui-messages-error {
    background: transparent !important;
    border: none !important;
    color: #c0392b !important;
    font-size: 0.85rem !important;
    padding: 0 !important;
    text-align: center;
}

.login-messages .ui-messages-error-icon {
    display: none !important;
}

/* Link "Esqueceu sua senha?" */
.login-forgot {
    text-align: center;
    margin-top: 14px;
}

.login-forgot-link,
.login-forgot-link:visited {
    font-size: 0.82rem;
    color: #666666;
    text-decoration: none;
}

.login-forgot-link:hover {
    color: #111111;
    text-decoration: underline;
}
