/* =========================
   FUNDO INSTITUCIONAL
   ========================= */
.page-auth {
    background: linear-gradient(135deg, #0f2f44, #1e5f74);
    font-family: "Segoe UI", Arial, sans-serif;
}

/* =========================
   CONTAINER CENTRAL
   ========================= */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* =========================
   CARD
   ========================= */
.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

/* detalhe superior institucional */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #0f2f44, #28a745);
}

/* =========================
   LOGOS
   ========================= */
.brand-login {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand-login img {
    height: 42px;
}

/* =========================
   TITULOS
   ========================= */
.login-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f2f44;
    display: block;
}

.login-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 18px;
    display: block;
}

/* =========================
   CAMPOS
   ========================= */
.field {
    margin-bottom: 14px;
}

.ui-inputfield,
.ui-password input {
    border-radius: 10px !important;
    padding: 10px !important;
    border: 1px solid #dcdcdc !important;
    width: 100%;
}

/* foco elegante */
.ui-inputfield:focus {
    border-color: #1e5f74 !important;
    box-shadow: 0 0 0 2px rgba(30,95,116,0.15);
}

/* =========================
   SENHA
   ========================= */
.login-password-group{
    display:flex;
    width:100%;
    align-items:stretch;
}

.login-password-input{
    flex:1 1 auto !important;
    width:100% !important;
    box-sizing:border-box;
    border:1px solid #dcdcdc !important;
    border-right:none !important;
    border-radius:12px 0 0 12px !important;
    padding:10px !important;
    height:46px;
    background:#fff;
}

.login-password-input:focus{
    border-color:#1e5f74 !important;
    box-shadow:0 0 0 2px rgba(30,95,116,0.15);
    outline:none;
}

.btn-eye{
    min-width:48px;
    width:48px;
    border:1px solid #d7dee8;
    border-left:none;
    border-radius:0 12px 12px 0;
    background:#f7f9fc;
    color:#35506b;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    height:46px;
}

/* =========================
   BOTÃO PRINCIPAL
   ========================= */
.btn-primary {
    background: linear-gradient(90deg, #0f2f44, #1e88e5) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px !important;
    font-weight: 600;
}

/* hover elegante */
.btn-primary:hover {
    filter: brightness(1.05);
}

/* =========================
   LINK
   ========================= */
.forgot-link {
    font-size: 0.85rem;
    color: #1e5f74;
    display: block;
    margin-top: 10px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* =========================
   RODAPÉ
   ========================= */
.footer-text {
    font-size: 0.75rem;
    color: #999;
    margin-top: 20px;
}

/* logos inferiores */
.logos {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.logos img {
    max-width: 45%;
}

.btn-block{
    width:100% !important;
    display:block !important;
}

.login-password-group{
    display:flex;
    width:100%;
    align-items:stretch;
}

.login-password-group .ui-password,
.login-password-group .ui-inputtext,
.login-password-input{
    flex:1 !important;
    width:100% !important;
}

.btn-eye{
    min-width:48px;
    width:48px;
    border:1px solid #d7dee8;
    border-left:none;
    border-radius:0 12px 12px 0;
    background:#f7f9fc;
    color:#35506b;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

#form\\:senha,
#form\\:senha_input,
#form\\:senhaTexto{
    border-radius:12px 0 0 12px !important;
}

#form\\:senhaTexto{
    border:1px solid #dcdcdc !important;
    padding:10px !important;
    width:100% !important;
    box-sizing:border-box;
}

.login-password-group{
    display:flex;
    width:100%;
    align-items:stretch;
}

.login-password-group .ui-password{
    flex:1 1 auto !important;
    display:block;
}

.login-password-group .ui-password input,
.login-password-group .ui-inputtext,
.login-password-input{
    width:100% !important;
    box-sizing:border-box;
}

.btn-eye{
    min-width:48px;
    width:48px;
    border:1px solid #d7dee8;
    border-left:none;
    border-radius:0 12px 12px 0;
    background:#f7f9fc;
    color:#35506b;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

/* =========================
   IDENTIFICAÇÃO DO AMBIENTE DE ACESSO
   ========================= */
.login-context-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.login-context-badge.interno {
    background: #e7f1ff;
    color: #0b5ed7;
    border: 1px solid #b6d4fe;
}

.switch-access-link {
    display: block;
    margin-top: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0b5ed7;
    text-decoration: none;
}

.switch-access-link:hover {
    text-decoration: underline;
}

.page-auth-interno .login-card::before {
    background: linear-gradient(90deg, #0b5ed7, #0f2f44);
}
