/* "Sign in with Microsoft" on the web login page and the DCM sign-in. Microsoft's sign-in branding guidance: the four-square mark
   in its own colours, a white button with dark grey text and a grey border (light), dark grey with white text (dark).
   Deliberately NOT tokenised, like the Google button: it must look like Microsoft on every team and must not follow team colours. */

.ms-logo { flex-shrink: 0; }
.ms-logo__r { fill: #f25022; } /* audit-allow: Microsoft brand */
.ms-logo__g { fill: #7fba00; } /* audit-allow: Microsoft brand */
.ms-logo__b { fill: #00a4ef; } /* audit-allow: Microsoft brand */
.ms-logo__y { fill: #ffb900; } /* audit-allow: Microsoft brand */

.btn-microsoft {
    background: #fff; /* audit-allow: Microsoft brand */
    color: #5e5e5e; /* audit-allow: Microsoft brand */
    border: 1px solid #8c8c8c; /* audit-allow: Microsoft brand */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    text-decoration: none;
}

.btn-microsoft:hover {
    background: #f3f3f3; /* audit-allow: Microsoft brand */
    transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-microsoft {
        background: #2f2f2f; /* audit-allow: Microsoft brand */
        color: #fff; /* audit-allow: Microsoft brand */
        border-color: #2f2f2f; /* audit-allow: Microsoft brand */
    }
}

/* DCM sign-in (body.dark-mode is the DCM's own dark switch) */
.dcm-btn--microsoft {
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background: #fff; /* audit-allow: Microsoft brand */
    color: #5e5e5e; /* audit-allow: Microsoft brand */
    border: 1px solid #8c8c8c; /* audit-allow: Microsoft brand */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.dcm-btn--microsoft:active { transform: scale(0.98); }

body.dark-mode .dcm-btn--microsoft {
    background: #2f2f2f; /* audit-allow: Microsoft brand */
    color: #fff; /* audit-allow: Microsoft brand */
    border-color: #2f2f2f; /* audit-allow: Microsoft brand */
}
