/*============================================================
                    STYLES - LOGIN SSO (Microsoft/Okta)
    Refs SUS-782 - Estilos movidos de inline para arquivo externo
============================================================*/

/* Wrapper principal do botão de login SSO */
.wpo365-mssignin-wrapper {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 12px 12px 24px 12px;
    text-align: center;
}

.wpo365-mssignin-spacearound {
    display: inline-block;
}

.wpo365-mssignin-wrapper form {
    display: none;
}

/* Botão de login SSO */
.wpo365-mssignin-button {
    border: 1px solid #8c8c8c;
    background: #ffffff;
    display: flex;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    cursor: pointer;
    max-height: 41px;
    min-height: 41px;
    height: 41px;
}

/* Logo do provedor SSO */
.wpo365-mssignin-logo {
    padding-left: 12px;
    padding-right: 6px;
    -webkit-flex-shrink: 1;
    -moz-flex-shrink: 1;
    flex-shrink: 1;
    width: 21px;
    height: 21px;
    box-sizing: content-box;
    display: flex;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

/* Label do botão SSO */
.wpo365-mssignin-label {
    padding-left: 6px;
    padding-right: 12px;
    font-weight: 600;
    color: #5e5e5e;
    font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    -webkit-flex-shrink: 1;
    -moz-flex-shrink: 1;
    flex-shrink: 1;
    height: 21px;
    line-height: 21px;
}

/* Divider com texto (ex: "OU") */
.divider:after,
.divider:before {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

/*============================================================
    Classes utilitárias para substituir inline styles
    (necessário para CSP sem unsafe-inline)
============================================================*/

/* Elemento oculto (substitui style="display:none") */
.hidden,
.d-none-util {
    display: none !important;
}

/* Form visível com largura 100% (para botão Okta) */
.wpo365-mssignin-wrapper form.form-visible {
    display: block;
    width: 100%;
}

/* Botão com largura 100% (para botão Okta) */
.wpo365-mssignin-button.btn-full-width {
    width: 100%;
}

/* Texto de campo obrigatório */
.required-mark {
    color: red;
}

/*============================================================
    Correções de estilo para página de login
============================================================*/

/* Corrige o botão "Esqueceu a senha?" que desaparecia no hover */
.card-body .btn.btn-link,
.card-body .btn.btn-link:hover,
.card-body .btn.btn-link:focus,
.card-body .btn.btn-link:active,
#btnPassword,
#btnPassword:hover,
#btnPassword:focus,
#btnPassword:active {
    color: #007bff !important;
    background-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.card-body .btn.btn-link:hover,
#btnPassword:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}
